**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: tvsou.com * @MinSWversion: V2.1.5 * @Revision 5 - [28/04/2022] Blackbear199 * - improvements * @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=PRC|maxdays=7|cultureinfo=zh-CN|charset=UTF-8|titlematchfactor=90} site {ratingsystem=CN|episodesystem=onscreen|retry=4} * url_index {url|https://www.tvsou.com/epg/ishot/|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|||||} *index_showsplit.modify {(debug)} * index_start.scrub {single||||} index_title.scrub {multi(includeblock=2 separator=":" include=first)||||} index_temp_1.scrub {multi|")} index_title.modify {cleanup(tags="<"">")} index_temp_2.modify {calculate(format=F0 type=element)|'index_temp_1' #} if {('index_temp_2' > "1")|1} index_temp_1.modify {substring(type=element)|1 1} index_temp_1.modify {replace|/yyb/|/wiki/} * index_urlshow.modify {addstart('index_temp_1' not "")|https:'index_temp_1'} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * subtitle.scrub {single|
||
|} 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'》} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### 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