67 lines
3.1 KiB
INI
Executable File
67 lines
3.1 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
||
* @header_start
|
||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||
* @Site: freesat.co.uk
|
||
* @MinSWversion: 1.1.1/56.27
|
||
* @Revision 1 - [06/08/2016] Blackbear199
|
||
* - change index start time
|
||
* @Revision 0 - [20/07/2016] Blackbear199
|
||
* - creation
|
||
* @Remarks:
|
||
* @header_end
|
||
**------------------------------------------------------------------------------------------------
|
||
site {url=freesat.co.uk|timezone=UTC|maxdays=7.1|cultureinfo=en-GB|charset=UTF-8|titlematchfactor=90}
|
||
site {ratingsystem=GB|episodesystem=onscreen}
|
||
url_index{url|http://www.freesat.co.uk/tvguide/fetchProgrammes}
|
||
urldate.format {datenumber|UNIX|0}
|
||
*
|
||
url_index.headers {method=POST}
|
||
url_index.headers {accept=*/*}
|
||
url_index.headers {contenttype=application/x-www-form-urlencoded}
|
||
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
||
url_index.headers {customheader=X-Requested-With=XMLHttpRequest}
|
||
url_index.headers {postdata={"currentTime":'urldate',"initialTime":'urldate',"dayStart":[00,0,0],"daysOffset":0,"region":1,"batId":280,"data":[{"code":"'channel'","timeIntervals":[{"start":-3600,"end":550800}]}]}}
|
||
*
|
||
index_showsplit.scrub {multi|{"Code":|||}
|
||
*
|
||
scope.range{(indexshowdetails)|end}
|
||
index_start.scrub {single|"Start":"\/Date(||)\/"|)\/"}
|
||
index_stop.scrub {single|"End":"\/Date(||)\/"|)\/"}
|
||
index_title.scrub {single|"Title":"||"|"}
|
||
index_description.scrub {single|"Description":"||"|"}
|
||
index_description.modify {remove(type=regex)|Also in HD.}
|
||
index_description.modify {remove(type=regex)|\[.*?\]}
|
||
index_description.modify {cleanup}
|
||
*
|
||
index_episode.modify {substring(type=regex pattern="(S'S1' Ep'E1'/'Et1')""(Ep'E1'/'Et1')""(S'S1' Ep'E1')""(Ep'E1')""'S1'/'E1'.")|'index_description' "^(\d+\/\d+\.)"}
|
||
index_description.modify {remove('index_episode' not "" type=regex)|^\d+\/\d+\.\s}
|
||
*
|
||
index_temp_2.modify {substring(type=regex)|'index_description' "\(.+?\)$"}
|
||
index_description.modify {remove('index_temp_2' not "" type=regex)|\(.+?\)$}
|
||
index_episode.modify {addstart("")|'index_temp_2'}
|
||
*
|
||
index_subtitle.modify {substring(type=regex)|'index_description' "^(.*?):\s"}
|
||
index_description.modify {remove('index_subtitle' not "" type=regex)|^.*?:\s}
|
||
*
|
||
index_productiondate.modify {substring(type=regex)|'index_episode' "\((\d{4})\)"}
|
||
index_episode.modify {clear(~ 'index_productiondate')}
|
||
*
|
||
index_title.modify {cleanup}
|
||
index_subtitle.modify {cleanup}
|
||
index_description.modify {cleanup}
|
||
end_scope
|
||
*
|
||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||
**
|
||
*
|
||
* disable url_index.headers {postdata=...} line above
|
||
*
|
||
** @auto_xml_channel_start
|
||
*url_index {url|http://www.freesat.co.uk/tvguide/fetchChannels/280/1}
|
||
*index_site_id.scrub {multi|"Code":"||"|"}
|
||
*index_site_channel.scrub {multi|"Name":"||"|"}
|
||
*index_site_channel.modify {cleanup}
|
||
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
||
** @auto_xml_channel_end
|