**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: tvsou.com * @MinSWversion: V2.1.5 * @Revision 4 - [26/04/2022] Blackbear199 * - rewrite * @Revision 3 - [04/06/2018] Blackbear199 * - site changed to POST * @Revision 2 - [28/05/2017] Blackbear199 * - fix start time for current show * @Revision 1 - [16/01/2017] Blackbear199 * - site changes * @Revision 0 - [01/10/2016] Blackbear199 * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=tvsou.com|timezone=Asia/Shanghai|maxdays=6|cultureinfo=zh-CN|charset=UTF-8|titlematchfactor=50} site {ratingsystem=CN|episodesystem=onscreen} * url_index {url|https://www.tvsou.com/epg/|channel|/w|urldate||} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * urldate.format {weekdaynumber|0} * global_temp_1.modify {set(scope=urlindex)|'config_site_id'} index_urlchannellogo {url|https:||||} *index_showsplit.modify {(debug)} * index_start.scrub {single||||} index_title.scrub {multi(includeblock=2 separator=":" include=first)||||} * index_start.modify {cleanup(tags="<"">")} index_title.modify {cleanup(tags="<"">")} index_title.modify {remove(type=regex)|"\d+$"} * index_urlshow.scrub {regex|||||} description.scrub {single|
||
|} category.scrub {single(separator=",")|类型:|;">|
|} director.scrub {single|导演:|">||} actor.scrub {multi|主演:|/">||} actor.scrub {single(separator=",")|人员:|;">||} presenter.scrub {multi|主持人:|">||} productiondate.scrub {single|

|(|)|

} country.scrub {single|地区:|">||} showicon.scrub {single|")} description.modify {remove|《'title'》} episode.modify {substring(pattern="'E1'" type=regex)|'subtitle' "^第(\d+)集:\s*"} subtitle.modify {remove(type=regex 'episode' not "")|"^第\d+集:\s*"} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL REGION FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index {url|https://www.tvsou.com/epg/difang/} *index_site_id.scrub {multi(excludeblock="display: none")|
|} *scope.range {(channellist)|end} *loop {(each "index_temp_9" in 'index_site_id')|end} *index_temp_9.modify {remove(type=regex)|"]*>[^<]*<\/a>"} *index_temp_8.modify {substring(type=regex)|'index_temp_9' "id=\"pindao\d+">([^<]*)<"} *index_temp_7.modify {substring(type=regex)|'index_temp_9' "href=\"\/epg\/(.*?)\/\""} *index_temp_6.modify {substring(type=regex)|'index_temp_9' "title=\"[^\"]*\">(.*?)\s*<"} *index_temp_6.modify {addstart|'index_temp_8': } *index_temp_7.modify {replace|\||#_#} *index_temp_6.modify {replace|\||#_#} *index_temp_5.modify {addend|'index_temp_7'#_#} *index_temp_4.modify {addend|'index_temp_6'#_#} *end_loop *index_site_id.modify {substring(type=regex)|'index_temp_5' "(.*?)#_#"} *index_site_channel.modify {substring(type=regex)|'index_temp_4' "(.*?)#_#"} index_site_id.modify {cleanup(removeduplicates link="index_site_channel")} *end_scope ** @auto_xml_channel_end