39 lines
1.8 KiB
INI
Executable File
39 lines
1.8 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: one.mk
|
|
* @MinSWversion:
|
|
* @Revision 0 - [01/12/2014] Francis De Paemeleere
|
|
* - creation
|
|
* @Remarks:
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
site {url=one.mk|timezone=Europe/Skopje|maxdays=28|cultureinfo=mk-MK|charset=UTF-8|titlematchfactor=90|nopageoverlaps|keepindexpage}
|
|
|
|
urldate.format {datestring|yyyy-MM-dd}
|
|
url_index{url|http://one.mk/tvvodich_epg.html?date=|urldate}
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages
|
|
|
|
index_variable_element.modify {addstart|'config_site_id'}
|
|
|
|
index_showsplit.scrub {regex||<ul class="tt-channel-events" data-channel="'index_variable_element'">(.*?)</ul>||}
|
|
scope.range {(splitindex)|end}
|
|
index_showsplit.modify {substring(type=regex)|<li .*?</li>}
|
|
end_scope
|
|
|
|
*index_date.scrub {single|}
|
|
index_start.scrub {regex||"ev-time"[^>]*>(\d\d:\d\d)||}
|
|
index_stop.scrub {regex||"ev-time"[^>]*>.*-\s*(\d\d:\d\d)||}
|
|
index_title.scrub {regex||"ev-headline"[^>]*>(.*?)</div>||}
|
|
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** @auto_xml_channel_start
|
|
*index_site_channel.scrub {regex||<ul [^>]*data-channel="\d*">\s*<li [^>]*data-channel="([^"]*)"||}
|
|
*index_site_id.scrub {regex||<ul [^>]*data-channel="(\d*)">\s*<li [^>]*data-channel="[^"]*"||}
|
|
*scope.range {(channellist)|end}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*end_scope
|
|
** @auto_xml_channel_end
|