69 lines
4.0 KiB
INI
Executable File
69 lines
4.0 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: telerama.fr
|
|
* @MinSWversion: V1.1.1/55
|
|
* @Revision 5 - [08/03/2017] Netuddki
|
|
* - fixed a bug with start and stop time
|
|
* @Revision 4 - [08/03/2017] Netuddki
|
|
* - added show icon
|
|
* - added option for xmltv_ns episode system
|
|
* - updated channel scrub
|
|
* @Revision 3 - [02/11/2015] Francis De Paemeleere
|
|
* - adjust .channels.xml generation
|
|
* @Revision 2 - [05/04/2013] Francis De Paemeleere
|
|
* - adjust to new minimal site changes
|
|
* @Revision 1 - [18/10/2011] Jan van Straaten / Willy de Wilde
|
|
* - improved index_showsplit
|
|
* @Remarks:
|
|
* this index-only version scrubs sufficient details to replace the full version in most cases
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
|
|
site {url=telerama.fr|timezone=Europe/Paris|maxdays=15|cultureinfo=fr-FR|charset=windows-1252|titlematchfactor=90}
|
|
*
|
|
*site {episodesystem=onscreen} *Enable for Onscreen Episode System
|
|
site {episodesystem=xmltv_ns} *Enable for xmltv_ns Episode System
|
|
*
|
|
site {retry=<retry time-out="10" index-delay="3">4</retry>}
|
|
url_index{url|http://television.telerama.fr/tele/chaine-tv/,|channel|.php?&date=|urldate}
|
|
urldate.format {datestring|yyyy-MM-dd}
|
|
*
|
|
index_showsplit.scrub {multi|<div id="LISTETELE"|<div class="tv10-chaine-item">|<!--tv10-chaine-descri-->|<!--LISTETELE tv10-chaine-liste-->}
|
|
index_urlshow {url|http://television.telerama.fr/tele|<!--tv10-chaine-outils-->|href="/tele|" onclick|</h2>}
|
|
index_start.scrub {regex||<div class=\"tv10-chaine-vignette\">.*?de\s(\d{2}h\d{2})||}
|
|
index_stop.scrub {regex||<div class=\"tv10-chaine-vignette\">.*?de\s\d{2}h\d{2}.*?(\d{2}h\d{2})||}
|
|
index_title.scrub {single|<h2 class="tv10-chaine-descri-tit">|');">|</a>}
|
|
index_start.modify {replace|h|:}
|
|
index_stop.modify {replace|h|:}
|
|
index_temp_1.scrub {multi(separator="<br />")|<p class="tv10-chaine-descri-txt">|||</p>}
|
|
index_description.modify {substring(type=element)|'index_temp_1' -1 1}
|
|
index_description.modify {cleanup(tags="<"">")}
|
|
index_temp_1.modify {remove(type=element)|-1 1} * remove the description part
|
|
index_temp_1.modify {substring(type=element)|0 1} * get the first part only
|
|
index_temp_1.modify {replace|<br>|\|} * split the first part into subtitle and the rest
|
|
index_temp_2.modify {calculate(type=element format=F0)|'index_temp_1' #} * count the number of elements now in index_temp_1
|
|
index_subtitle.modify {substring('index_temp_2'>"1" type=element)|'index_temp_1' 0 1} * get the first element (this is the subtitle)
|
|
index_subtitle.modify {cleanup(tags="<"">")}
|
|
index_category.scrub {single|<p class="tv10-chaine-descri-surt">||</p>|</p>}
|
|
index_actor.scrub {multi|Acteur :|.php">|</a>|<br />}
|
|
index_actor.modify {replace|,|\|}
|
|
index_presenter.scrub {multi|Présentateur :|.php">|</a>|<br />}
|
|
index_director.scrub {multi|Réalisateur :|.php">|</a>|<br />}
|
|
index_writer.scrub {multi|Scénariste :|.php">|</a>|<br />}
|
|
index_temp_3.scrub {single|<div class="tv10-b-fiche tv10-b-fiche-savoir">|Fiche épisode |</a>|</div>}
|
|
index_episode.modify {set(pattern="S'S1'E'E1'")|'index_temp_3'}
|
|
index_urlchannellogo.modify {set|http://icon.telerama.fr/tele/imedia/images_chaines_tra/Transparent/80x80/'config_site_id'.png}
|
|
|
|
index_showicon.scrub {url|http://television.telerama.fr|<img src="||" />}
|
|
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** You need to change the charset to UTF-8!
|
|
** @auto_xml_channel_start
|
|
*url_index{url|http://television.telerama.fr/tele/popups/personnaliser.php}
|
|
*index_site_id.scrub {regex||data-pk=\"(.*?)\"||}
|
|
*index_site_channel.scrub {regex||channel_name\">(.*?)<||}
|
|
** @auto_xml_channel_end
|