**------------------------------------------------------------------------------------------------ * @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_start.scrub {single|

|

|

} index_title.scrub {single|

|

|} index_subtitle.scrub {single(exclude="Épisode")|

||

|

} 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="|"|" exclude="Lire la suite""Ajouter à ma liste")|
|
|} description.scrub {multi |
|
|
|} category.scrub {single|
||
|
} country.scrub {single|Pays :|||} productiondate.scrub {single|Sortie :|||} * description.modify {cleanup(tags="<"">")} description.modify {cleanup} description.modify {replace|\||\n} description.modify {replace|&|&} subtitle.scrub {multi (separator=":" exclude="Saison""épisode")|
|

||

||(|)||

||} actor.modify {replace|
| - } actor.modify {cleanup} actor.modify {cleanup(tags="<"">")} director.scrub {multi (include="Réalisateur""Scénariste")|
    |
    ||
} director.modify {replace|
| - } director.scrub {multi (include="Réalisateur")|
    |
  • |
  • |
} director.modify {cleanup} director.modify {cleanup(tags="<"">")} director.modify {cleanup(removeduplicates)} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start () *url_index{url()|https://www.programme-tv.net/_esi/channel-list/|urldate|/?bouquet=perso&modal=0} *url_index{url(debug)|http://192.168.178.30/programme-tv_net.php?reqtype=3&date=|urldate|&Cookie=##TOKEN##} *index_site_id.scrub {multi ()|} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} ** @auto_xml_channel_end