Files
epg/siteini.pack/Finland/nelonen.fi.ini
freearhey a597b11307 Init
2021-03-09 22:46:37 +03:00

39 lines
2.1 KiB
INI
Executable File

**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: nelonen.fi
* @MinSWversion:
* @Revision 1 - [25/02/2016]
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=nelonen.fi|timezone=WET|maxdays=28|cultureinfo=fi-FI|charset=UTF-8|titlematchfactor=90|episodesystem=xmltv_ns|ratingsystem=MEKU|keepindexpage}
url_index{url|http://www.nelonen.fi/tvopas_json/|urldate|}
url_index.headers {accept=text/html,application/xhtml+xml,application/xml|contenttype=application/json}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datestring|yyyy-MM-dd}
index_variable_element.modify {addstart('index_variable_element' = "")|"'config_site_id'"}
index_showsplit.scrub {regex||'index_variable_element':\[(.+?)\]||}
index_showsplit.modify {replace(type=regex)|\},\{|\}\|\{}
index_showsplit.modify {replace(type=regex)|\t | }
index_showsplit.modify {cleanup(style=jsondecode)}
index_start.scrub {regex||"starttime_timestamp":"(\d+)",||}
index_stop.scrub {regex||"endtime_timestamp":"(\d+)",||}
index_title.scrub {regex||"name":"(.+?)","||}
index_description.scrub {regex||"description":"(.+?)","||}
index_description.modify {remove(type=regex)|\s+$}
index_rating.modify {substring(type=regex)|'index_title' \(S?\d{0,2}\)$}
index_title.modify {remove('index_rating' not = "")|'index_rating'}
index_rating.modify {remove(type=regex)|[\(\)]+}
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
** the following lines create the channel file
*index_site_id.scrub {regex||"(c\d+)":\[||}
*index_site_channel.scrub {regex||"channel":"([^"]+)"\}\]||}
*scope.range {(channellist)|end}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
*end_scope
** @auto_xml_channel_end