-
Notifications
You must be signed in to change notification settings - Fork 19
/
uk-sky.com.ini
59 lines (57 loc) · 3.19 KB
/
uk-sky.com.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: uk-sky.com
* @MinSWversion: V1.1.1/55.26
* none
* @Revision 6 - [06/11/2015] Jan van Straaten
* Added productiondate
* @Revision 5 - [23/08/2015] Jan van Straaten
* Adapted to new (simpler) detail pages of the site
* @Revision 4 - [18/05/2012] Quake505
* Small change to the Part Scrub, Added an episode scrub, (yes again) - Ready for GA?
* @Revision 3 - []
* Changed the Part scrub again, also corrected the program start
* @Revision 2 - []
* Updates made recommend by Jan, updated the part scrub, updated productiondate and updated description mod
* @Revision 1 - []
* This is the first version of the file
* @Remarks:
* less details than before!
* @header_end
**------------------------------------------------------------------------------------------------
site {url=tv.sky.com|timezone=UTC|maxdays=7|cultureinfo=en-GB|charset=ISO-8859-1|episodesystem=onscreen}
url_index{url|http://epgservices.sky.com/tvlistings-proxy/TVListingsProxy/tvlistings.json?channels=|channel|&dur=1440&detail=2&time=|urldate|}
url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages
urldate.format {datestring|yyyyMMddHHMM}
*
index_showsplit.scrub {multi(exclude=first)|program":[|"eventid"|"movielocator"}
index_start.scrub {single|"start"|:"|",|",}
index_title.scrub {single|"title"|:"|",|",}
*index_description.scrub {single|"shortDesc"|:"|",|",}
index_duration.scrub {single|"dur"|:"|",|",}
index_duration.modify {calculate(format=time)|60 / 60 /}
*
index_urlshow {url|http://tv.sky.com/programme/detail/|channelid":"||",}
index_urlshow.modify {addend|/'{single(include=first)|:"||",|",}'}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages
title.scrub {regex||<h1 class=\"bubble-title\">(.+?)</h1>||}
description.scrub {regex||<p class=\"bubble-programme-description description\">(.+?)</p>||}
category.scrub {regex||<span class="bubble-programme-genres">(.+?)</span>||}
category.modify {replace|,|\|} * split in multi
showicon.scrub {regex||<img class=\"bubble-main-image\" src=\"(.+?)\"||}
temp_1.scrub {regex||<span class=\"bubble-programme-details\">(Season\s*?\d{1,2}\s)||} * the season
temp_2.scrub {regex||<span class=\"bubble-programme-details\">.+?(Episode\s*?\d{1,2}\s)||} * the episode
episode.modify {addstart('temp_2' not "")|'temp_1''temp_2'}
productiondate.modify {substring(type=regex)|'description' "\((\d{4})\)"}
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
*url_index{url|http://epgservices.sky.com/tvlistings-proxy/TVListingsProxy/init.json}
*index_site_channel.scrub {multi|title|:"|",|",}
*index_site_id.scrub {multi|channelid|:"|",|",}
*index_site_channel.modify {replace|\'|}
*scope.range {(channellist)|end}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
*end_scope
** @auto_xml_channel_end