**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: vsetv.com
* @MinSWversion: V3.1
* @Revision 7 - [01/03/2021] Mat8861
* @Revision 6 - [17/10/2019] Blackbear199
* - url_index/showsplit fix
* @Revision 5 - [26/12/2017] Blackbear199
* - showsplit fix
* @Revision 4 - [06/08/2017] Blackbear199
* - episode info fix
* @Revision 3 - [12/07/2017] Blackbear199
* - changed url_index to fix gif's used in start time
* - added subtitle
* @Revision 2 - [01/11/2016] Blackbear199
* - site changes
* @Revision 1 - [08/09/2016] Blackbear199
* - site changes
* @Revision 0 - [22/08/2015] Jan van Straaten
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=vsetv.com|timezone=Europe/Moscow|maxdays=7|cultureinfo=ru-RU|charset=windows-1251|titlematchfactor=0|nopageoverlaps|allowlastdayoverflow}
site {episodesystem=onscreen}
*
url_index {url|http://www.vsetv.com/rewrite_url.php}
url_index.headers {method=POST}
url_index.headers {postdata=timezone=14&submit.x=21&submit.y=14&selected_channel=channel_'channel'&selected_date=day_'urldate'}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
*
urldate.format {datestring|yyyy-MM-dd}
*
index_urlchannellogo.scrub {single(exclude="nologo")|
|src="|"|
}
index_urlchannellogo.modify {addstart(not "")|http://www.vsetv.com}
*
index_showsplit.scrub {multi|||
|
}
index_showsplit.modify {replace(type=regex)|">([^<]*)
||
|
}
index_start.scrub {single|||
|}
index_start.modify {replace|
|0}
index_start.modify {replace|
|5}
index_start.modify {replace|
|0}
index_start.modify {replace|
|0}
index_start.modify {replace|
|5}
index_start.modify {replace|
|0}
index_start.modify {replace|
|5}
index_title.scrub {regex||(.*?)
||}
*
index_title.modify {cleanup(tags="<"">")}
index_title.modify {replace(type=regex)|", \d+ ч\.$"|.}
index_title.modify {replace(type=regex)|"\d+\s(эп)\."|с}
index_subtitle.modify {substring(type=regex)|'index_title' "\d+\sс\.\s+\"(.+?)\"\."}
*index_title.modify {remove(type=regex)|\d+\sс\.(\s+\".+?\"\.)}
index_episode.modify {substring(pattern="'S1' сезон, 'E1' с""'E1' с" type=regex)|'index_title' "\",\s(\d+\sсезон,\s\d+\sс\|\d+\sс)\."} *use webgrab episode pattern system(SxEy x.y.)
index_episode.modify {substring(type=regex)|'index_title' "\",\s(\d+\sсезон,\s\d+\sс\|\d+\sс)\."} *keep original episode info style as the site shows it
index_title.modify {remove(type=regex)|", (?:\d+\sсезон,\s\d+\sс\|\d+\sс)\."}
index_title.modify {remove|"}
index_title.modify {remove(type=regex)|"\.$"}
*
title.scrub {regex||class=\"showname\">\s+?(.+?)
||}
titleoriginal.scrub {regex(lang=en)||class=\"showname\">\s+?(?:.+?)
(.*?)
||}
description.scrub {regex||(.*?)||}
director.scrub {regex||Режиссер\(ы\):(.*?)
||}
actor.scrub {regex||Актеры:(.*?)
||}
presenter.scrub {regex||Ведущие:(.*?)
||}
category.scrub {regex||class=\"showname\">.+?(.*?)||}
country.scrub {regex||class=\"showname\">.+?(?:
)+?\s*?(\w+)||}
productiondate.scrub {single|class="showname">||}
starrating.scrub {regex||Зрительский рейтинг:\s*?(\d.*?)||}
starrating.scrub {regex||Рейтинг телешоу:\s*?(\d.*?)||}
showicon.scrub {single|class="showmain">|
}
*
titleoriginal.modify {clear('title')}
description.modify {cleanup(tags="<"">")}
director.modify {replace|,|\|}
actor.modify {replace|,|\|}
presenter.modify {replace|,|\|}
category.modify {clear(~ ":")}
category.modify {replace| / |\|}
category.modify {remove('productiondate' not "")|'productiondate'}
category.modify {cleanup(style=name)}
country.modify {remove('productiondate' not "")|'productiondate'}
starrating.modify {clear("0.0")}
showicon.modify {addstart(not "")|http://www.vsetv.com}
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*url_index {url|http://www.vsetv.com/}
*index_site_channel.scrub {multi||}
*index_site_id.scrub {multi|}
*scope.range {(channellist)|end}
*index_site_id.modify {remove| selected}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
*end_scope
** @auto_xml_channel_end