**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: programme-tv.net * @MinSWversion: V2.1.4 * @Revision 14 - [12/09/2024] doglover * Website changes * @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.53/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_showsplit.scrub {multi ()|} 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.53/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 *For classical credits - remove the next lines index_title.modify {remove|\} index_subtitle.modify {remove|\} index_description.modify {remove|\} index_category.modify {cleanup(removeduplicates)} index_category.modify {cleanup} index_subtitle.modify {cleanup} index_temp_4.modify {set|'index_category'} index_temp_5.modify {set|'index_subtitle'} index_temp_6.modify {set|'index_episode'} index_temp_7.modify {set|'index_productiondate'} index_subtitle.modify {clear} index_writer.modify {clear} index_rating.modify {clear} index_productiondate.modify {clear} index_titleoriginal.modify {clear} index_actor.modify {clear} index_director.modify {clear} index_presenter.modify {clear} index_episode.modify {clear} index_category.modify {clear} index_videoquality.modify {clear} title.modify {remove|\} subtitle.modify {remove|\} description.modify {remove|\} category.modify {cleanup(removeduplicates)} category.modify {cleanup} actor.modify {cleanup} director.modify {cleanup} actor.modify {replace|\|\||\|} description.modify {addend('director' not "" separator=", ")|\n'director'} description.modify {addend('actor' not "" separator="\n")|\n'actor'} actor.modify {clear} director.modify {clear} temp_9.modify {addstart ('episode' not "") | ║ 'episode'} temp_9.modify {addstart ('index_temp_6' not "") | ║ 'index_temp_6'} temp_9.modify {addend ('subtitle' not "") | ║ 'subtitle'} temp_9.modify {addend ('index_temp_5' not "") | ║ 'index_temp_5'} temp_9.modify {addend ('titleoriginal' not "") | ║ 'titleoriginal'} temp_9.modify {addend ('category' not "" separator=", ") | ║ 'category'} temp_9.modify {addend ('index_temp_4' not "" separator=", ") | ║ 'index_temp_4'} temp_9.modify {addend ('country' not "" separator=", ") | ║ 'country'} temp_9.modify {addend ('productiondate' not "") | ║ 'productiondate'} temp_9.modify {addend ('index_temp_7' not "") | ║ 'index_temp_7'} temp_9.modify {addend ('rating' not "") | ║ 'rating'} temp_9.modify {remove (type=regex)|^ ║ } subtitle.modify {set ('temp_9' not "")|'temp_9'} rating.modify {clear} episode.modify {clear} category.modify {clear} productiondate.modify {clear} titleoriginal.modify {clear} writer.modify {clear} producer.modify {clear} composer.modify {clear} starrating.modify {clear} rating.modify {clear} presenter.modify {clear} starrating.modify {clear} videoquality.modify {clear} videoaspect.modify {clear} country.modify {clear} temp_2.modify {calculate(format=F0 type=char)|'description' #} loop{('temp_2' > "2300")|end} description.modify {remove(type=sentence)|-1 1} temp_2.modify {calculate(format=F0 type=char)|'description' #} end_loop title.modify {substring(type=char)|'title' 0 120} subtitle.modify {substring(type=char)|'subtitle' 0 120} index_title.modify {substring(type=char)|'index_title' 0 120}