100 lines
4.4 KiB
INI
Executable File
100 lines
4.4 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: tv24.lt
|
|
* @MinSWversion: V1.1.1/55
|
|
* @Revision 7 - [08/01/2018] TDabasinskas
|
|
* Timezone changed backed to UTC, as the UNIX timestamps within the parsed text are UTC based.
|
|
* @Revision 6 - [12/02/2017] TDabasinskas
|
|
* Timezone was updated from UTC to Europe/Vilnius, which is the correct way to identify a timezone
|
|
* The space after each attribute was removed, as the site output was recently updated, causing the config to break
|
|
* @Revision 5 - [06/08/2016] Blackbear199
|
|
* site changes
|
|
* @Revision 4 - [19/07/2016] Blackbear199
|
|
* showsplit fix
|
|
* @Revision 3 - [22/05/2016] Blackbear199
|
|
* change season/episode to SxEx,add stop.scrub,add rating
|
|
* @Revision 2 - [23/02/2016] Jan van Straaten
|
|
* complete rewrite
|
|
* @Revision 1 - [01/04/2013] Francis De Paemeleere
|
|
* update .channel.xml generation
|
|
* remove duplicate channel_id's
|
|
* @Revision 0 - [07/07/2011] Jan van Straaten
|
|
* none
|
|
* @Remarks:
|
|
* none
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
|
|
site {url=tv24.lt|timezone=UTC|maxdays=8|cultureinfo=lt-LT|charset=utf-8|titlematchfactor=90|episodesystem=onscreen|ratingsystem=IMDb}
|
|
url_index{url|https://www.tv24.lt/programme/listing/none/|urldate|?filter=channel&subslug=|channel|} *windows users
|
|
*url_index{url|http://127.0.0.1/tv24_lt.php?urldate=|urldate|&channel=|channel|} *linux users
|
|
urldate.format {datestring|dd-MM-yyyy}
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
url_index.headers {contenttype=application/json}
|
|
*
|
|
index_showsplit.scrub {multi||||} * copy content
|
|
index_showsplit.modify {cleanup(style=jsondecode)}
|
|
index_showsplit.modify {substring(type=regex)|"\"id\":\d{9}.*?\"logo_64\":\".*?\""}
|
|
*index_showsplit.modify {replace|\||\n\n\|} *testing only
|
|
*
|
|
scope.range {(indexshowdetails)|end}
|
|
index_start.scrub {single|"start_unix":||,|,}
|
|
index_stop.scrub {single|"stop_unix":||,|,}
|
|
index_title.scrub {single|"title":"||"|"}
|
|
*
|
|
index_titleoriginal.scrub {regex||"title_original":"(.*?)",||}
|
|
index_titleoriginal.modify {clear('index_titleoriginal' 'index_title')}
|
|
*
|
|
index_description.scrub {single|"description_long":"||"|"}
|
|
index_description.modify {replace|\\n| }
|
|
index_description.modify {replace|\\t| }
|
|
index_description.modify {replace|\\r| }
|
|
index_description.modify {cleanup}
|
|
*
|
|
index_subtitle.scrub {regex||"ep_title":"(.*?)",||}
|
|
*
|
|
index_category.scrub {regex||"genrestring":"(.*?)",||}
|
|
index_category.scrub {regex||"categorystring":"(.*?)",||}
|
|
index_category.modify {replace|,|\|} * make multi
|
|
*
|
|
index_country.scrub {single(separator=", ")|"country":"||"|"}
|
|
index_productiondate.scrub {regex||"year":(\d{4}),||}
|
|
*
|
|
index_director.scrub {regex||"director":"(.*?)",||}
|
|
index_director.modify {replace|,|\|} * make multi
|
|
*
|
|
index_actor.scrub {regex||"cast":"(.*?)",||}
|
|
index_actor.modify {replace|,|\|} * make multi
|
|
*
|
|
index_showicon.scrub {regex||"image":"(https.+?)",||}
|
|
index_urlchannellogo {url|https://cdn.tvstart.com/img/channel/|"logo_64":"||"|"}
|
|
*
|
|
index_temp_1.scrub {single|"season":||,|,}
|
|
index_temp_1.modify {clear("0")}
|
|
index_temp_1.modify {addstart('index_temp_1' not "")|S}
|
|
*
|
|
index_episode.scrub {single|"ep_nr":||,|,}
|
|
index_episode.modify {clear("0")}
|
|
index_episode.modify {addstart('index_episode' not "")|E}
|
|
index_episode.modify {addstart('index_temp_1' not "")|'index_temp_1'}
|
|
*
|
|
index_rating.scrub {single|"imdb_rating":||,|,}
|
|
index_rating.modify {replace|null|}
|
|
end_scope
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** @auto_xml_channel_start
|
|
*scope.range {(channellist)|end}
|
|
*url_index {url|https://www.tv24.lt/data/channels/visi} *windows users
|
|
*url_index{url|http://127.0.0.1/tv24_lt.php} *linux users
|
|
*index_site_channel.scrub {regex||"id":\d*?,"name":"(.{1,40})","slug":".{1,40}","info||}
|
|
*index_site_id.scrub {regex||"id":\d*?,"name":".{1,40}","slug":"(.{1,40})","info||}
|
|
*index_site_channel.modify {cleanup(style=jsondecode)}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*index_site_id.modify {remove(type=element)|0 1}
|
|
*index_site_channel.modify {remove(type=element)|0 1}
|
|
*end_scope
|
|
** @auto_xml_channel_end
|