48 lines
2.7 KiB
INI
Executable File
48 lines
2.7 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: iltapulu.fi
|
|
* @MinSWversion:
|
|
* @Revision 1 - [24/02/2016]
|
|
* - creation
|
|
* @Remarks:
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
site {url=iltapulu.fi|timezone=WET|maxdays=21|cultureinfo=fi-FI|charset=UTF-8|titlematchfactor=90|episodesystem=xmltv_ns|ratingsystem=MEKU|keepindexpage}
|
|
url_index{url|http://iltapulu.fi/?past=1&all=1&date=|urldate|}
|
|
url_index.headers {accept=text/html,application/xhtml+xml,application/xml|contenttype=text/html}
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
urldate.format {datestring|yyyy-MM-dd}
|
|
index_variable_element.modify {addend('index_variable_element' = "")|'config_site_id'"}
|
|
index_showsplit.scrub {regex||<div class="full-row.+?</a></td></tr></table></div>||}
|
|
index_showsplit.modify {remove(type=regex)|<div.+?data-pid=(?!"\d{12}'index_variable_element').+?</div>}
|
|
index_showsplit.modify {cleanup(removeduplicates)}
|
|
index_start.scrub {regex||data-starttime="(\d+)"||}
|
|
index_stop.scrub {regex||data-endtime="(\d+)"||}
|
|
index_title.scrub {regex|| " title="[^>]+>(.+?)<\/a>||}
|
|
index_description.scrub {regex|| " title="(.*?)">||}
|
|
index_category.scrub {regex||<div class="full-row(.*?)"||}
|
|
index_category.modify {remove|running}
|
|
index_category.modify {remove|fakta }
|
|
index_category.modify {remove|svt-hidden}
|
|
index_category.modify {remove(type=regex)|svt\d+}
|
|
index_category.modify {remove(type=regex)|^\s+}
|
|
**Ratings and program images (Disable thes lines for faster processing)
|
|
index_urlshow.scrub {regex||data-pid="(\d+)"||}
|
|
index_urlshow.modify {addstart('index_urlshow' not = "")|http://iltapulu.fi/program_info.php?programid=}
|
|
index_urlshow.headers {contenttype=text/html}
|
|
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
title.scrub {regex||<input type="hidden" value="(.+?)" name="program_name"||}
|
|
showicon.scrub {regex||<div class="program-image"><img src="(.*?)" ||}
|
|
rating.scrub {regex||png" alt="\((.+?)\)"||}
|
|
**Ratings and program images ends
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** @auto_xml_channel_start
|
|
*index_site_channel.scrub {regex||class="channel-name">.+?alt="(.+?) tv-ohjelmat" />||}
|
|
*index_site_id.scrub {regex||i:\d+;i:(\d+);||}
|
|
*scope.range {(channellist)|end}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*end_scope
|
|
** @auto_xml_channel_end |