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

55
siteini.pack/Norway/tv2.no.ini Executable file
View File

@@ -0,0 +1,55 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: tv2.no
* @MinSWversion: 1.1.1/56.27
* @Revision 0 - [17/07/2016] Blackbear199
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=tv2.no|timezone=Europe/Oslo|maxdays=14|cultureinfo=nn-NO|charset=UTF-8|titlematchfactor=90|keepindexpage}
site {ratingsystem=NO|episodesystem=onscreen}
url_index{url|http://rest.tv2.no/epg-dw-rest/epg/program/|urldate|/}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datestring|yyyy/MM/dd}
*
index_variable_element.modify {set|'config_site_id'}
index_showsplit.scrub {regex||\{"id":'index_variable_element',"name":".+?","shortName".*?"program":\[.+?\]\}||}
index_showsplit.modify {substring(type=regex)|"\{.+?\}"}
*
scope.range{(indexshowdetails)|end}
index_start.scrub {single|"start":"||.000|.000}
index_stop.scrub {single|"stop":"||.000|.000}
*
index_title.scrub {single|"title":"||"|"}
index_description.scrub {single|"epsyn":"||"|"}
index_description.scrub {single|"srsyn":"||"|"}
index_category.scrub {single|"categ":"||"|"}
index_category.scrub {single|"genre":"||"|"}
*
index_productiondate.scrub {single|"pyear":||,|,}
index_country.scrub {single|"natio":"||"|"}
*
index_temp_1.scrub {single|"epnr":||,|,}
index_temp_2.scrub {single|"eptot":||,|,}
index_temp_1.modify {addend('index_temp_2' not "")|/'index_temp_2'}
index_temp_3.scrub {single|"season":||,|,}
index_temp_1.modify {addstart(index_temp_3' not "")|'index_temp_3' }
index_temp_1.modify {clear(" ")}
index_episode.modify {addstart('index_temp_1' not "" pattern="'S1' 'E1'/'Et1'""'S1' 'E1'""'E1'/'Et1'""'E1'""'S1'")|'index_temp_1'}
*
index_description.modify {remove(type=regex)|^.*?\d{4}\.*}
index_description.modify {remove(type=regex)|^Episode:\s}
index_description.modify {remove|\\n}
index_description.modify {remove|\}
index_category.modify {cleanup(style=name)}
end_scope
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*index_site_id.scrub {regex||\{"id":(\d{4}),"name":".+?","shortName"||}
*index_site_channel.scrub {regex||\{"id":\d{4},"name":"(.+?)","shortName"||}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
** @auto_xml_channel_end