53 lines
2.4 KiB
INI
Executable File
53 lines
2.4 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
||
* @header_start
|
||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||
* @Site: spfl.co.uk
|
||
* @MinSWversion: 1.1.1/56.27
|
||
* @Revision 1 - [24/07/2016] Blackbear199
|
||
* - forgot a end_scope
|
||
* @Revision 0 - [18/07/2016] Blackbear199
|
||
* - creation
|
||
* @Remarks:
|
||
* @header_end
|
||
**------------------------------------------------------------------------------------------------
|
||
site {url=spfl.co.uk|timezone=Europe/London|maxdays=14.1|cultureinfo=en-GB|charset=UTF-8|titlematchfactor=90}
|
||
site {ratingsystem=GB|episodesystem=onscreen}
|
||
url_index{url|http://spfl.co.uk/tv-games/}
|
||
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
||
urldate.format {datestring|yyyy-MM-dd}
|
||
*
|
||
scope.range{(splitindex)|end}
|
||
index_showsplit.scrub {multi||||}
|
||
index_temp_9.modify {substring(type=regex)|'index_showsplit' "<div class=\"fixtures\">(.+?)<\/div><\/div><\/div><\/div>"}
|
||
loop{(each "index_temp_8" in 'index_temp_9')|end}
|
||
index_temp_7.modify {substring(type=regex)|'index_temp_8' "<h4>.*?<\/h4>"}
|
||
index_temp_8.modify {remove|'index_temp_7'}
|
||
index_temp_8.modify {replace|<div class="fixture_item with_crests" >|'index_temp_7'<div class="fixture_item with_crests" >}
|
||
index_temp_6.modify {addend|'index_temp_8'}
|
||
end_loop
|
||
index_showsplit.modify {clear}
|
||
index_showsplit.modify {substring(type=regex)|'index_temp_6' "<h4>.+?<img src=\".*?\" alt=\".*?\" \/>"}
|
||
end_scope
|
||
*
|
||
scope.range{(indexshowdetails)|end}
|
||
index_temp_1.scrub {single|<h4>||<span|<span}
|
||
index_temp_1.modify {remove(type=regex)|\s\d{1,2}(\w+)\s}
|
||
index_temp_2.scrub {single|<div class="status">||</div>|</div>}
|
||
index_temp_2.modify {addstart|'index_temp_1' }
|
||
index_start.modify {addstart(pattern="ddd d MMMM yyyy HH:mm")|'index_temp_2'}
|
||
index_duration.modify {set|180}
|
||
index_title.scrub {single|<a href="/|/fixtures/">|</a>|</span>}
|
||
index_description.scrub {single|<span class="home">||</span></a>|</span></a>}
|
||
index_description.modify {replace|</span><span class="score">v</span><span class="away">| vs }
|
||
index_category.modify {addstart|Sports}
|
||
end_scope
|
||
*
|
||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||
**
|
||
** @auto_xml_channel_start
|
||
*index_site_id.scrub {|}
|
||
*index_site_id.modify {set|spfl}
|
||
*index_site_channel.modify {set|SPFL}
|
||
** @auto_xml_channel_end
|