**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: primo.eu * @MinSWversion: V2.1.4 * @Revision 6 - [06/09/2017] Jan van Straaten * extraction of start/stop times done with the pixel width value of the show in the epg grid of the site. * @Revision 5 - [08/08/2017] Blackbear199 * - start/stop time changes * @Revision 4 - [18/01/2017] Blackbear199 * - changed start/stop to details page.somtimes it doesnt exist on index page. * @Revision 3 - [01/05/2016] Blackbear199 * - added country element,fixed rating and starrating elements * @Revision 2 - [18/03/2016] Blackbear199 * - rewrite * @Revision 1 - [13/03/2013] Francis De Paemeleere * - fix scope typo * - use cleanup tags to remove () addition to actors * @Revision 0 - [11/11/2012] Francis De Paemeleere * - first version * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ * site {url=primo.eu|timezone=Europe/Brussels|maxdays=7|cultureinfo=nl-BE|charset=utf-8|titlematchfactor=90|allowlastdayoverflow|episodesystem=onscreen} * url_index {url()|https://www.primo.eu/tv-programs-full-view/|urldate|/|channel|/all} url_index.headers {customheader=Accept-Encoding=gzip,deflate,br} url_index.headers {host=www.primo.eu} url_index.headers {accept=text/html, application/xhtml+xml, image/jxr, */*} * urldate.format {datenumber|UNIX} scope.range{(splitindex)|end} index_showsplit.scrub {single()||||} index_showsplit.modify {replace()|
} * keep 'top of index_page in the showsplit element index_showsplit.modify {substring(type=regex)|"((?:
|">} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * index_temp_1.scrub {regex()||
||} * scrub the top of index page = day start global_temp_1.modify {calculate(debug 'index_temp_1' "top_of_page" format=date,unix)|1:0:0 +} * add one day to starttime of the listing index_temp_2.scrub {regex()||\A
]*>([^<]+)||} end_scope * scope.range {(showdetails)|end} title.scrub {single|Programmanaam:|||
} subtitle.scrub {single|Titel aflevering:|||
} description.scrub {single|Synopsis:||} category.scrub {single|Genre:|||
} director.scrub {single|Regisseur:|||
} actor.scrub {multi|||} presenter.scrub {single|Presentatie:|||} productiondate.scrub {single|Jaar:|||} starrating.scrub {single|Rating:|||} rating.scrub {single|Minimumleeftijd:| (|)|} country.scrub {single|Land:|||} * temp_1.scrub {single|Seizoen:|||} episode.scrub {single|Nr. aflevering:|||} episode.modify {addstart('episode' not "")|S'temp_1'E} * description.modify {clear('description' "-")} category.modify {clear('description' "-")} episode.modify {clear('episode'~"-")} subtitle.modify {clear('subtitle' "-")} actor.modify {substring(type=regex)|"(.+?)\("} starrating.modify {calculate(format=F1)} starrating.modify {clear('starrating' "0.0")} end_scope ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ** @auto_xml_channel_start *url_index {url|https://www.primo.eu/tv-programs-full-view/|urldate|/all/all} *index_site_channel.scrub {multi|Alle kanalen|">||} *index_site_id.scrub {multi|Alle kanalen|