/
filmon.com.ini
83 lines (76 loc) · 3.8 KB
/
filmon.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: filmon.com
* @MinSWversion: 3.1
* @Revision 7 - [07/10/2021] Mat8861
* @Revision 6 - [17/01/2021] Mat8861
* @Revision 5 - [01/07/2015] Francis De Paemeleere
* - adapted to site changes (new api)
* @Revision 4 - [04/11/2014] Francis De Paemeleere
* - adapted to site changes
* @Revision 3 - [01/10/2014] Jan van Straaten
* - adapted to site changes
* @Revision 2 - [05/09/2014] Francis De Paemeleere
* - create .channels.xml now working with dummy channel input
* - fix fistshow detection (sometimes a previous day is available, sometimes only the current day)
* So we will start at the "NOW" point (always correct)
* @Revision 1 - [22/06/2014] Jan van Straaten
* - complete rewrite, site changed
* @Revision 0 - [2/10/2013] Jan van Straaten
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
*
site {url=filmon.com|timezone=UTC|maxdays=7.1|cultureinfo=en-US|charset=utf-8|titlematchfactor=90|episodesystem=xmltv_ns}
*
urldate.format {datestring|yyyy-MM-dd}
url_index{url()|https://www.filmon.com/api-v2/tvguide/|channel|}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
index_showsplit.scrub {multi|{"programme":"|||}
*index_showsplit.modify {(debug)}
index_start.scrub {regex||"startdatetime"\s*:\s*([+-]?\d*)||}
index_stop.scrub {regex||"enddatetime"\s*:\s*([+-]?\d*)||}
index_title.scrub {regex||"programme_name"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*)"||}
index_description.scrub {regex||"programme_description"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*)"||}
index_showicon.scrub {single|"size":"150x150"|"url":"|","|\}}
index_temp_1.scrub {regex||"seriesNumber"\s*:\s*([+-]?\d+)[^\}]*"isSeries":1||}
index_temp_2.scrub {regex||"episodeNumber"\s*:\s*([+-]?\d+)[^\}]*"isSeries":1||}
scope.range{(datelogo)|end}
index_variable_element.modify {clear}
index_variable_element.modify {addstart|'config_site_id'}
index_urlchannellogo.modify {addstart|http://static.filmon.com/couch/channels/'index_variable_element'/big_logo.png}
end_scope
scope.range{(indexshowdetails)|end}
*index_start.modify {calculate(format=time)}
*index_stop.modify {calculate(format=time)}
* index_temp_1 = season
* index_temp_2 = episode
index_episode.modify {clear}
index_episode.modify {addend('index_temp_1' not="")|'index_temp_1'}
index_episode.modify {addend|.}
index_episode.modify {addend('index_temp_2' not="")|'index_temp_2'}
index_episode.modify {addend|.}
index_episode.modify {clear(="..")}
index_title.modify {cleanup(style=jsondecode)}
index_description.modify {cleanup(style=jsondecode)}
index_showicon.modify {cleanup(style=jsondecode)}
index_description.modify {remove|\\r}
index_description.modify {remove|\\n}
end_scope
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** @auto_xml_channel_start
*url_index{url|http://www.filmon.com/tv/}
*index_site_id.scrub {single||||}
*index_temp_1.scrub {regex||var groups\s*=\s*\[.*?\];||}
*scope.range {(channellist)|end}
*index_site_id.modify {clear}
*index_site_channel.modify {clear}
*index_site_id.modify {substring(type=regex)|'index_temp_1' "\{"id"\s*:\s*([+-]?\d+)[^\{]*"title"\s*:\s*"[^"\\]*(?:\\.[^"\\]*)*""}
*index_site_channel.modify {substring(type=regex)|'index_temp_1' "\{"id"\s*:\s*[+-]?\d+[^\{]*"title"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*)""}
*index_site_channel.modify {replace|'|’}
*index_site_channel.modify {cleanup(style=jsondecode)}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
*end_scope
** @auto_xml_channel_end