**------------------------------------------------------------------------------------------------ * @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=4} url_index{url|http://television.telerama.fr/tele/chaine-tv/,|channel|.php?&date=|urldate} urldate.format {datestring|yyyy-MM-dd} * index_showsplit.scrub {multi|
||} index_urlshow {url|http://television.telerama.fr/tele||href="/tele|" onclick|} index_start.scrub {regex||
.*?de\s(\d{2}h\d{2})||} index_stop.scrub {regex||
.*?de\s\d{2}h\d{2}.*?(\d{2}h\d{2})||} index_title.scrub {single|

|');">|} index_start.modify {replace|h|:} index_stop.modify {replace|h|:} index_temp_1.scrub {multi(separator="
")|

|||

} 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|
|\|} * 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|

||

|

} index_actor.scrub {multi|Acteur :|.php">||
} index_actor.modify {replace|,|\|} index_presenter.scrub {multi|Présentateur :|.php">||
} index_director.scrub {multi|Réalisateur :|.php">||
} index_writer.scrub {multi|Scénariste :|.php">||
} index_temp_3.scrub {single|
|Fiche épisode ||
} 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|} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### 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