Init
This commit is contained in:
90
siteini.pack/Norway/vg.no.ini
Executable file
90
siteini.pack/Norway/vg.no.ini
Executable file
@@ -0,0 +1,90 @@
|
||||
**------------------------------------------------------------------------------------------------
|
||||
* @header_start
|
||||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||||
* @Site: vg.no
|
||||
* @MinSWversion: V2.1
|
||||
*
|
||||
* @Revision 8 - [19/03/2020] Maniac
|
||||
* API has changed, similar to tv.nu.ini with some modifications
|
||||
* @Revision 7 - [13/02/2010] doglover
|
||||
* Site change
|
||||
* @Revision 6 - [21/12/2018] Goran
|
||||
* Site change
|
||||
* @Revision 5 - [22/02/2017] Netuddki
|
||||
* Cleaned up Title
|
||||
* Added Show Icon
|
||||
* @Revision 4 - [09/11/2015] Willy De Wilde
|
||||
* Changes in website
|
||||
* @Revision 3 - [11/10/2011] Jan van Straaten
|
||||
* title disabled and some changes in credits
|
||||
* @Revision 2 - []
|
||||
* small change in rating.modify (caused crash), timezone error
|
||||
* @Revision 1 - []
|
||||
* update due to site change (has detail page now)
|
||||
* @Remarks:
|
||||
* a Norwegian site
|
||||
* @header_end
|
||||
**------------------------------------------------------------------------------------------------
|
||||
site {url=tvguide.vg.no|timezone=UTC|maxdays=7|cultureinfo=nb-NO|charset=UTF-8|titlematchfactor=90|ratingsystem=imdb|allowlastdayoverflow}
|
||||
*site {episodesystem=xmltv_ns}
|
||||
site {episodesystem=onscreen}
|
||||
urldate.format {datestring|yyyy-MM-dd}
|
||||
url_index{url|https://web-api.tvno.nu/channels/|channel|/schedule?date=|urldate|&fullDay=true}
|
||||
url_index.headers {customheader=X-Requested-With=XMLHttpRequest}
|
||||
index_urlchannellogo {url||"image":"||","broadcasts"}
|
||||
scope.range {(splitindex)|end}
|
||||
index_showsplit.scrub {multi|"broadcasts":[|{"type":||],"channelPlayProvider"}
|
||||
index_showsplit.modify{replace|\}\}\},\{|\}\|\{}
|
||||
index_showsplit.modify {cleanup(style=unidecode)}
|
||||
end_scope
|
||||
scope.range {(indexshowdetails)|end}
|
||||
index_start.scrub {regex||"startTime":(\d*)||}
|
||||
index_stop.scrub {regex||"endTime":(\d*)||}
|
||||
index_title.scrub {single|"title":"||",|",}
|
||||
global_temp_1.scrub {single|"description":"||",|",}
|
||||
index_showicon.scrub{url||"imageLandscape":"||",|",}
|
||||
index_rating.scrub{single|"imdb":{"rating":"||"|"}
|
||||
index_productiondate.scrub{single|"year":||,"}
|
||||
index_category.scrub{single(separator="","")|"genres":["||"],}
|
||||
index_temp_1.scrub{regex||^"([^",]*)","id":||}
|
||||
*index_temp_2.scrub{regex||^".*?","id":"([^",]*)","slug||}
|
||||
*index_temp_1.modify{addend|/'index_temp_2'}
|
||||
end_scope
|
||||
index_urlshow.modify {addstart('index_temp_1' not "")|https://web-api.tvno.nu/details/broadcast/'index_temp_1'}
|
||||
index_urlshow.modify{addend(not "")|?compact=true}
|
||||
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages
|
||||
scope.range {(showdetails)|end}
|
||||
title.modify{addstart|'index_title'}
|
||||
subtitle.scrub {single|"title":"||",|",}
|
||||
description.modify {addend('description' "")|'global_temp_1'}
|
||||
description.modify {replace|\\"|"}
|
||||
country.scrub{single(separator="","")|"countries":["||"]}
|
||||
producer.scrub {multi(max=2 includeblock="Produsent""Exekutiv producent")|{"name":"||","|}}
|
||||
director.scrub {multi(max=2 includeblock="Regissør")|{"name":"||","|}}
|
||||
actor.scrub {multi(max=4 includeblock="Skuespiller""Guest Star")|{"name":"||","|}}
|
||||
writer.scrub {multi(max=2 includeblock="Forfatter""Manusforfatter")|{"name":"||","|}}
|
||||
presenter.scrub {multi(max=2 includeblock="Programleder""Forteller")|{"name":"||","|}}
|
||||
temp_1.scrub{regex||^.*?"seasonNumber":([+-]?\d*)||}
|
||||
temp_1.modify{addstart(not "")|S}
|
||||
temp_2.scrub{regex(include=first)||^.*?"episodeNumber":([+-]?\d*)||}
|
||||
temp_2.modify{addstart(not "")|E}
|
||||
temp_3.scrub{regex||"totalEpisodes":(\d+),||}
|
||||
temp_3.modify{addstart(not "")|Et}
|
||||
episode.modify {addstart(pattern="S'S1'E'E1'Et'Et1'""S'S1'""E'E1'""Et'Et1'")|'temp_1''temp_2''temp_3'}
|
||||
end_scope
|
||||
subtitle.modify{remove( ~'index_title')|'subtitle'}
|
||||
temp_4.scrub {single|"tournament":"||",|",}
|
||||
subtitle.modify{addend(not "")| ('temp_4')}
|
||||
*
|
||||
*
|
||||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||||
**
|
||||
** @auto_xml_channel_start
|
||||
*url_index{url|https://web-api.tvno.nu/channels}
|
||||
*index_site_id.scrub {regex||{"id":\d+,"name":".*?","slug":"([^"]*)","||}
|
||||
*index_site_channel.scrub {regex||{"id":\d+,"name":"([^"]*)","slug":"||}
|
||||
*scope.range {(channellist)|end}
|
||||
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
||||
*end_scope
|
||||
** @auto_xml_channel_end
|
||||
Reference in New Issue
Block a user