**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: programme-tv.net * @MinSWversion: V2.1 * @Revision 13 - [14/07/2023] doglover * Use of a Cookie * @Revision 12 - [18/05/2023] doglover * Update * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=programme-tv.net|timezone=Europe/Paris|maxdays=7|cultureinfo=fr-FR|charset=UTF-8|titlematchfactor=90} site {ratingsystem=FR|episodesystem=onscreen} url_index {url ()|http://192.168.178.30/programme-tv_net.php?reqtype=1&channel=|channel|&date=|urldate|/&Cookie=##TOKEN##} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * scope.range{(urlindex)|end} global_temp_3.modify {set('global_temp_2' = "" type=run)|curl.exe|-s -i https://consents.prismamedia.com/v2?redirectUrl=https://consents.programme-tv.net/v2?redirectUrl=https%3a%2f%2fwww.programme-tv.net%2f} global_temp_2.modify {substring ('global_temp_2' = "" type=regex)|'global_temp_3' Set-Cookie: (.*?);} *global_temp_2.modify {(debug)} url_index.modify {replace|##TOKEN##|'global_temp_2'} end_scope urldate.format {datestring|yyyy-MM-dd} global_temp_1.modify {calculate(format=date,"yyyy-MM-dd")|'now'} url_index.modify {remove|'global_temp_1'/} * *index_urlchannellogo {url||
|
|} index_title.scrub {single|||
|} index_start.modify {replace|h|:} index_title.modify {cleanup(tags="<"">")} index_title.modify {cleanup} index_title.modify {remove(type=regex)|"\s*\(.*?\)$"} * index_temp_3.scrub {multi||||} index_title.modify {addstart ('index_temp_3' ~ "Direct")|LIVE: } * index_urlshow {url ()|http://192.168.178.30/programme-tv_net.php?reqtype=2&dataid=|class="mainBroadcastCard-title"|href="|"|} index_urlshow.modify {addend|&Cookie='global_temp_2'} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate,br} title.modify {addstart|'index_title'} description.scrub {multi (separator="" exclude="Lire la suite""Ajouter à ma liste")|||
||