82 lines
4.2 KiB
INI
Executable File
82 lines
4.2 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: programme-tv.premiere.fr
|
|
* @MinSWversion: 1.1.1/52
|
|
* @Revision 3 - [24/05/2014] Jan van Straaten/Ruby
|
|
* changed url_index, added actor cleanup to remove unicode char sequence
|
|
* @Revision 2 - [03/05/2013] Jan van Straaten
|
|
* removes generic showicon
|
|
* @Revision 1 - [01/05/2013] Jan van Straaten
|
|
* small correction in credits
|
|
* @Revision 0 - [27/04/2013] Willy de Wilde/Jan van Straaten
|
|
* creation
|
|
* @Remarks:
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
site {url=http://programme-tv.premiere.fr/|timezone=UTC+01:00|maxdays=10|cultureinfo=fr-FR|charset=UTF-8|titlematchfactor=90|firstshow=now}
|
|
site {subtitlestype=Malentendant}
|
|
*url_index{url()|http://programme-tv.premiere.fr/var/t7j/storage/json/tranches/|channel|_|urldate|_t|subpage|.json
|
|
url_index{url()|http://cdn-premiere.ladmedia.fr//var/t7j/storage/json/tranches/|channel|_|urldate|_t|subpage|.js}
|
|
|
|
urldate.format {datestring|yyyyMMdd}
|
|
subpage.format{list|1|2|3|4|5|6}
|
|
|
|
index_showsplit.scrub {multi ()|"aDiffusion"|},{|"nbEpi"}
|
|
index_showsplit.modify {cleanup} * this converts the unicode char sequences \u0009 in the corresponding char
|
|
index_urlshow {url|http://programme-tv.premiere.fr/progtv/getFiche/|"urlDiff":"|#|","}
|
|
*
|
|
index_start.scrub {single|"heureDif":"||"}
|
|
index_start.modify {replace|h|:}
|
|
index_title.scrub {single|"titre":"||"}
|
|
index_subtitle.scrub {single|"soustitre":"||"}
|
|
index_category.scrub {single|":"||"}
|
|
index_director.scrub {multi(separator="\",\"")|Réalisateur":["||"]}
|
|
index_actor.scrub {multi(separator="\",\"")|"Acteur":["||"]}
|
|
index_writer.scrub {multi(separator="\",\"")|"Scénariste":["||"]}
|
|
index_presenter.scrub {multi(separator="\",\"")|"Présentateur":["||"]}
|
|
index_composer.scrub {multi(separator="\",\"")|"Musique":["||"]}
|
|
index_premiere.scrub {single|"inedit":"||"}
|
|
index_premiere.modify {replace(= "1")|'index_premiere'|true}
|
|
index_temp_1.scrub {single|"saison":"||"}
|
|
index_temp_2.scrub {single|"numEpi":"||"}
|
|
index_temp_1.modify {addstart(notnull)|S}
|
|
index_temp_1.modify {addend(notnull)|/}
|
|
index_temp_2.modify {addstart(notnull)|Ep}
|
|
index_episode.modify {addstart|'index_temp_1''index_temp_2'}
|
|
index_episode.modify {remove|S0/Ep0}
|
|
index_episode.modify {remove|/Ep0}
|
|
index_episode.modify {remove|S0/}
|
|
*
|
|
title.scrub {single|"titre":"||","|","}
|
|
title.modify {cleanup}
|
|
titleoriginal.scrub {single|Titre original :<\/strong>||<\/li>|<\/li>}
|
|
description.scrub {single|<div class=\"description_cnt\">||<\/div>|<\/div>}
|
|
description.modify {cleanup}
|
|
actor.scrub {multi|Avec :|">|<\/a>|<\/li>}
|
|
actor.modify {clear('index_actor' not "")}
|
|
actor.modify {cleanup}
|
|
productiondate.scrub {single|<li class=\"cat\">||<\/li>|<\/li>}
|
|
showicon.scrub {single|<img title=|src=\"|\"|width=}
|
|
showicon.modify {remove|\}
|
|
showicon.modify {clear(~ "premiere_common/images/logo_tele7.png")}
|
|
temp_1.scrub {single|<li class=\"cat\">||<div class=\"description\">|<div class=\"description\">} * contains rating, subtitles, video,
|
|
* extract the subelements from temp_1 :
|
|
rating.modify {addstart('temp_1' ~ "Tout Public")|Tout Public}
|
|
rating.modify {addstart('temp_1' ~ "16.jpg")|16+}
|
|
rating.modify {addstart('temp_1' ~ "12.jpg")|12+}
|
|
rating.modify {addstart('temp_1' ~ "10.jpg")|10+}
|
|
videoaspect.modify {addstart('temp_1' ~ "16:9")|16:9}
|
|
videoaspect.modify {addstart('temp_1' ~ "4:3")|4:3}
|
|
videoquality.modify {addstart('temp_1' ~ "HD")|HD}
|
|
subtitles.modify {addstart('temp_1' ~ "Sous-titrage Malentendant")|true}
|
|
*
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** @auto_xml_channel_start
|
|
*url_index{url ()|http://programme-tv.premiere.fr/TF1}
|
|
*index_site_channel.scrub {multi ()|<dd id="grandes_chaines_details">|<span class="texte_cnt"><span>|</span>|<script type="text/javascript">}
|
|
*index_site_id.scrub {multi ()|<dd id="grandes_chaines_details">|logo_chaines/50x50/chaine_|.png"|<script type="text/javascript">}
|
|
** @auto_xml_channel_end
|