**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: tv.yandex.ru
* @MinSWversion: V1.57
* @Revision 7 - [18/02/2019] EgiszZ
* - ini fixes based on new web site design (title)
* @Revision 6 - [14/10/2018] FlyGoneCrazy
* - ini fixes based on new web site design
* @Revision 5 - [08/11/2017] Blackbear199
* - added UA and TR to channels.xml creation
* @Revision 4 - [30/10/2017] Blackbear199
* - site changes
* @Revision 3 - [05/04/2017] Blackbear199
* - site changes
* @Revision 2 - [28/07/2016] Blackbear199
* - title match fix
* @Revision 1 - [25/07/2016] Blackbear199
* - added subtitle
* - added country
* - added urlchannellogo
* - added showicon
* - rewrote season/episode to version 56.25+ format.
* - set desired output,onscreen(S5 E9/10) or xmltv_ns(4.8/9.) on site{...} line.default onscreen.
* @Revision 0 - [02/03/2016] Blackbear199
* - creation
* @Remarks: your_remarks
* @header_end
**------------------------------------------------------------------------------------------------
*site {loadcookie=cookie_file.txt}
site {url=tv.yandex.ru|timezone=Europe/Moscow|maxdays=6|cultureinfo=ru-RU|charset=UTF-8|titlematchfactor=90}
site {ratingsystem=RU|episodesystem=onscreen}
*
url_index{url|https://tv.yandex.ru/##region##/channels/##channel##?date=|urldate|&period=all-day}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datestring|yyyy-MM-dd}
*
scope.range{(urlindex)|end}
global_temp_1.modify {substring(type=regex)|'config_site_id' "^(\d+)##"}
global_temp_2.modify {substring(type=regex)|'config_site_id' "##(\d+)$"}
url_index.modify {replace|##region##|'global_temp_1'}
url_index.modify {replace|##channel##|'global_temp_2'}
end_scope
*
index_urlchannellogo {url(scope=datelogo)|https:||/>}
*
index_showsplit.scrub {multi|"events":[{||}]}|}]}}
index_showsplit.modify {replace|\},\{|\|}
*
index_urlshow {url|https://tv.yandex.ru|"url":"||",|",}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
*
index_temp_1.scrub {regex||"start":"\d{4}-\d{2}-\d{2}T\d{1,2}:\d{2}:\d{2}([-+]\d{2}:\d{2})"||}
index_start.scrub {regex||"start":"(\d{4}-\d{2}-\d{2}T\d{1,2}:\d{2}:\d{2})[-+]\d{2}:\d{2}"||}
index_stop.scrub {regex||"finish":"(\d{4}-\d{2}-\d{2}T\d{1,2}:\d{2}:\d{2})[-+]\d{2}:\d{2}"||}
*index_title.scrub {(debug)single||||}
index_title.scrub {regex||"finish":"[^"]*"(?:,"liveId":\d*,"yacFamilyId":\d*)?,"title":"(.*?)","||}
index_title.scrub {regex||"finish":"[^"]*"(?:,"yacFamilyId":\d*)?,"title":"(.*?)","||}
*index_title.scrub {single|,"title":"||"|"}
*index_title.scrub {(debug)single|