**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: sjonvarp.is * @MinSWversion: 1.1.1/55 * @Revision 1 - [24/04/2016] Jan van Straaten * - adapted to site changes * @Revision 0 - [25/02/2016] Jan van Straaten * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=sjonvarp.is|timezone=Atlantic/Reykjavik|maxdays=8|cultureinfo=is-IS|charset=utf-8|titlematchfactor=90|nopageoverlaps} *urldate.format {datestring|yyy-MM-dd} urldate.format {datestring|yyyy"&m="MM"&d="dd} *url_index{url(debug)|http://www.sjonvarp.is/index.php?p=idag&c=|channel|&Tm=00:|urldate|} url_index{url(debug)|http://www.sjonvarp.is/index.php?Tm=?&p=idag&c=|channel|&y=|urldate|} http://www.sjonvarp.is/index.php?Tm=?&p=idag&c=S1&y=2016&m=04&d=24 url_index.headers {accept=text/html, application/xhtml+xml, image/jxr, */*} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages *index_urlchannellogo {url| } *http://www.sjonvarp.is/index.php?p=idag&c=S1&Tm=16:2016-02-26 *index_showsplit.scrub {regex(debug)||\d{2}:\d{2}.+?||} index_showsplit.scrub {regex()||.+?||} index_showsplit.modify {replace()|\||\|\n\n} index_date.scrub {regex()||.+?(\d{2}\.\s*?\w+?\s*?\d{4})||} index_start.scrub {regex||(\d{2}:\d{2})||} index_title.scrub {regex||(.+?)||} index_subtitle.scrub {regex||\((.*?)\)||} index_subtitle.modify {cleanup} index_description.scrub {regex()||
(.*?)
||} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index.modify {set|http://www.sjonvarp.is/} *index_site_channel.scrub {regex()||Skoða dagskránna á(.+?)í dag||} *index_site_id.scrub {regex()||&c=(.+?)&y=||} *scope.range {(channellist)|end} *index_site_channel.modify {cleanup} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} *end_scope ** @auto_xml_channel_end