**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: s-tv.ru * @MinSWversion: * @Revision 2 - [11/09/2017] m0thman * - added eposides parsing * - added channel logos * - added programm icons * - fixed xxx-channel.xml generation to include all channels * - fixed categories parsing * @Revision 1 - [17/07/2016] Blackbear199 * - site changes,fixed channels.xml generation * @Revision 0 - [26/02/2016] Blackbear199 * - creation * @Remarks: your_remarks * @header_end **------------------------------------------------------------------------------------------------ site {url=s-tv.ru|timezone=UTC+03:00|maxdays=8|cultureinfo=ru-RU|charset=UTF-8|titlematchfactor=90} site {ratingsystem=RU|episodesystem=onscreen|allowlastpageoverflow} * url_index{url|http://www.s-tv.ru/tv/|channel|/|urldate|/} url_index.headers {customheader=Accept-Encoding=gzip,deflate} urldate.format {datestring|yyyy-MM-dd} * index_showsplit.scrub {multi||
|
|} * scope.range{(indexshowdetails)|end} index_start.scrub {single||||} index_start.modify {replace|.|:} index_title.scrub {single|||} index_rating.scrub {single|[||]<|]<} index_rating.modify {remove|]} index_rating.modify {clear('index_rating'=='index_title')} index_subtitle.scrub {single|- "|||"} index_subtitle.modify {remove|"} index_episode.modify {set('index_title' ~ "-я серия")(pattern="'S1'-й сезон. 'E1'-я серия""'E1'-я серия")|'index_title'} index_episode.modify {set('index_episode' not= "")|'index_episode'\|'index_episode'(system=xmltv_ns)} * index_urlshow {url|http://www.s-tv.ru/tv/ajaxinfo/|href="#ab||">|">} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} index_urlchannellogo {url|||} index_title.modify {remove(type=regex)| \[.+?\]} index_title.modify {remove(type=regex)|\.\s\d.*$} index_title.modify {remove(type=regex)|} index_title.modify {cleanup(tags="<"">")} end_scope * title.scrub {single|

||

|} description.scrub {multi|
|

|

|} description.modify {cleanup(tags="<"">")} director.scrub {single(separator=", ")|Режиссер:||
|
} producer.scrub {single(separator=", ")|Производство:||

|

} presenter.scrub {single(separator=", " max=2)|Ведущие:||
|
} actor.scrub {single(separator=", ")|В ролях:||
|
} * temp_1.scrub {single|

||

|

} temp_2.scrub {multi|Жанр:||

|

} category.modify {set|'temp_2'} category.modify {addstart('temp_1' not "")|'temp_1'\|} category.modify {cleanup(style=lower)} * productiondate.scrub {single|Год:||

|

} country.scrub {single(separator=", ")|Страна:||

|

} * showicon.scrub {single|} * showicon.scrub {multi|} * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** *********************************************************** ** @auto_xml_channel_start * url_index{url|http://www.s-tv.ru/tv/1tv/|urldate|/} * index_site_id.scrub {multi(debug)|
||} * index_site_channel.scrub {multi(debug)|
|||
} * index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} ** @auto_xml_channel_end