**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: guidatv.quotidiano.net * @MinSWversion: * @Revision 2 - [28/09/2019] Goran * - fixed showsplit * - added category for shows with no subpage * @Revision 1 - [20/07/2019] Goran * - site make some changes * @Revision 0 - [21/02/2019] Goran * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=guidatv.quotidiano.net|timezone=Europe/Rome|maxdays=3|cultureinfo=it-IT|charset=UTF-8|ratingsystem=IT|titlematchfactor=90|nopageoverlaps} *site {episodesystem=onscreen} *Enable for Onscreen Episode System site {episodesystem=xmltv_ns} *Enable for xmltv_ns Episode System urldate.format {list|oggi|domani|dopodomani} * url_index{url|https://www.guidatv.quotidiano.net/programmazione-canale/|urldate|/|channel|/} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages * index_showsplit.scrub {multi|>Programmi TV Mattina|
(.*)
"} index_temp_1.modify {cleanup(removeduplicates=equal,100 link="index_showsplit" span=1 keeplast)} *index_showsplit.modify {(debug)} *for debug end_scope * index_start.scrub {single|sgtvchannelplan_hoursCell"|">|<|
} index_title.scrub {single||||} index_urlchannellogo {url||class="sgtvchannelplan_divContainer"|src="|"|alt="} index_productiondate.modify {substring(type=regex)|'index_title' "\((\d{4})\)"} index_country.modify {remove('index_productiondate' not"")|'index_productiondate'} index_title.modify {remove('index_productiondate' not"")|('index_productiondate')} index_episode.modify {substring(type=regex pattern="St. 'S1' - Ep. 'E1'""Ep. 'E1'""St. 'S1'""Stagione 'S1', Ep. 'E1'""Stagione 'S1' Episodio 'E1'""Episodio 'E1'")|'index_title' "St.\s\d+ - Ep\.\s\d+\|Ep\.\s\d+\|St.\s\d+"} index_title.modify {remove('index_episode' not"")|('index_episode')} index_title.modify {cleanup} index_category.scrub {single|style="border-left-color:|>| |} * index_urlshow {url||href="||"|">} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages * scope.range{(showdetails)|end} *title.scrub {single|||!??!|} title.modify {addstart|'index_title'} showicon.scrub {regex|||
|} actor.scrub {multi|class="sgtvdetails_divActor">|alt="|
|} actor.modify {replace(~"interpreta")|">|)} actor.modify {replace|interpreta|(role=} actor.modify {remove|">} actor.modify {substring(type=element)|'actor' 0 10} director.scrub {regex||Regia:\s*([^-<:,]*)||} director.modify {remove|Cast} country.scrub {multi(separator="," includeblock=2)|
|
|} category.scrub {multi(separator="/" includeblock=3)|
|
|} country.modify{remove(type=regex)|"(\d{4})"} rating.scrub {single|
||
} ratingicon.scrub {single|
|
} ratingicon.modify {addstart(not"")|https://www.guidatv.quotidiano.net} episode.modify {substring(type=regex)|'description' "Stagione \d+, Ep. \d+\|Stagione \d+ Episodio \d+\|Episodio \d+"} subtitle.scrub{single|Trama Episodio: |||} subtitle.modify{substring("" type=regex)|'description' "Stagione \d+, Ep. \d+\s-\s(.*?)\."} description.modify {remove(type=regex)|(Stagione \d+, Ep. \d+\|Stagione \d+ Episodio \d+\|Episodio \d+)} description.modify {cleanup} end_scope* * * operations: ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index{url|https://www.guidatv.quotidiano.net/canali/|subpage|} *subpage.format {list||premium/|sky-intrattenimento/|sky-sport/|sky-cinema/|sky-doc-e-lifestyle/|sky-news/|sky-bambini/|sky-musica/|sky-primafila/|dazn/|rsi/} *index_site_channel.scrub {regex||(?:/oggi/[^"]*">