49 lines
2.5 KiB
INI
Executable File
49 lines
2.5 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @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
|
|
<img class="channelLogo" border=0 src=images/logos/S1ORANGE.jpg alt='Logo Skjár Einn' />
|
|
*index_showsplit.scrub {regex(debug)||<strong>\d{2}:\d{2}</strong>.+?</td></tr>||}
|
|
index_showsplit.scrub {regex()||<span class='day-listing-time'>.+?</div></div>||}
|
|
index_showsplit.modify {replace()|\||\|\n\n}
|
|
index_date.scrub {regex()||<caption>.+?(\d{2}\.\s*?\w+?\s*?\d{4})</caption>||}
|
|
index_start.scrub {regex||<span class='day-listing-time'>(\d{2}:\d{2})</span>||}
|
|
index_title.scrub {regex||<span class='day-listing-title'>(.+?)</span>||}
|
|
index_subtitle.scrub {regex||<span class='day-listing-originaltitle'>\((.*?)\)</span>||}
|
|
index_subtitle.modify {cleanup}
|
|
index_description.scrub {regex()||<div class='day-listing-description'>(.*?)</div>||}
|
|
|
|
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### 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
|