This commit is contained in:
freearhey
2021-03-09 22:46:37 +03:00
commit a597b11307
1377 changed files with 173563 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: rtl.nl
* @MinSWversion: 1.1.1/56.25
* @Revision 0 - [20/06/2016] Blackbear199
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=rtl.nl|timezone=UTC|maxdays=7.1|cultureinfo=nl-NL|charset=UTF-8|titlematchfactor=90}
site {ratingsystem=NL|episodesystem=onscreen}
url_index{url|http://www.rtl.nl/system/s4m/tvguide/guide_for_one_day.xml?output=json&days_back=0&days_ahead=7&station=|channel|}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datenumber|0}
*
index_showsplit.scrub {multi||||}
*
scope.range{(splitindex)|end}
index_temp_1.modify {substring(type=regex)|'index_showsplit' "\{\"abstract_key\":\".+?\",\"season_key\":\".*?\",\"episode_key\":.+?\}"||}
*
index_temp_9.modify {clear}
loop {(each "index_temp_2" in 'index_temp_1')|end}
index_temp_3.modify {substring(type=regex)|'index_temp_2' "\"abstract_key\":\"(.+?)\""}
index_temp_4.modify {substring(type=regex)|'index_temp_2' "\"season_key\":\"(\d*)\""}
index_temp_5.modify {substring(type=regex)|'index_temp_2' "\"episode_key\":\"(\d*)\""}
*
index_temp_6.modify {substring(type=regex)|'index_showsplit' "\{\"abstract_key\":\"'index_temp_3'\",\"name\":.+?\}"}
index_temp_7.modify {substring(type=regex)|'index_showsplit' "\{\"season_key\":\"'index_temp_4'\".+?\}"}
index_temp_8.modify {substring(type=regex)|'index_showsplit' "\{\"episode_key\":\"'index_temp_5'\".+?\}"}
*
index_temp_9.modify {addend|'index_temp_2''index_temp_6''index_temp_7''index_temp_8'##}
end_loop
index_showsplit.modify {clear}
index_showsplit.modify {substring(type=regex)|'index_temp_9' "(\{\"abstract_key\":\".+?\",\"season_key"\:\"\d*\",\"episode_key\":\"\d*\".+?\})##"}
end_scope
*
scope.range{(indexshowdetails)|end}
index_start.scrub {single|"unixtime":||}|}}
index_title.scrub {regex||\{"abstract_key":".+?","name":"(.+?)"\}||}
index_subtitle.scrub {regex||{"episode_key":".+?","episode_number":".+?","name":"(.+?)",||}
index_subtitle.modify {clear('index_title')}
index_subtitle.modify {clear(~ "Aflevering")}
index_description.scrub {regex||"synopsis":"(.*?)"||}
*
index_temp_1.scrub {single|"season_number":"||"|"}
index_temp_1.modify {addstart(not "")|S}
*
index_episode.scrub {single|"episode_number":"||"|"}
index_episode.modify {clear("0")}
index_episode.modify {addstart(not "")|E}
index_episode.modify {addstart('index_temp_1' not "")|'index_temp_1'}
*
index_rating.scrub {regex||"nicam":"(\d+)[^<]*"||}
index_rating.modify {addend(not "")|+}
end_scope
*
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*
*url_index{url|http://www.rtl.nl/api/v2/tvguide/running/?station=RTL%20Crime,RTL%20Lounge,RTL%20Telekids,RTL4,RTL5,RTL7,RTL8,RTLZ}
*index_site_id.scrub {multi|"Station":"||"|"}
*index_site_id.modify {replace| |%20}
*index_site_channel.scrub {multi|"Station":"||"|"}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
** @auto_xml_channel_end