**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: kplus.vn * @MinSWversion: V1.1.1.53/15 * @Revision 2 - [14/06/2016] Blackbear199 * - add english version * @Revision 1 - [05/06/2016] Blackbear199 * - rewrite,sites uses asp.net so php script work around used * @MinSWversion: V1.1.1.53/15 * @Revision 0 - [22/02/2014] Francis De Paemeleere * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=kplus.vn|timezone=America/Moncton|maxdays=8|cultureinfo=vi-VN|charset=UTF-8|titlematchfactor=90|keepindexpage|episodesystem=onscreen} *---------------------------------------------------------------------------------------------- * use you local timezone for timezone= above * if you dont know what to put for a valid timezone,use the setting timezone=? * run webgrab and check you webgrab++.log and there will be a list of vaild timezone settings *----------------------------------------------------------------------------------------------- url_index{url|http://217.199.160.20/kplus_vn.php?date=|urldate|} urldate.format {datestring|d-M-yyyy} * index_variable_element.modify {set|'config_site_id'} index_showsplit.scrub {multi(includeblock="\"Id\":'index_variable_element',")|"Channel":||}}|}}} * index_urlchannellogo {url||"Image":"||"|"} * scope.range{(indexshowdetails)|end} index_start.scrub {single|"ShowingTime":"||"|"} * *index_title.scrub {multi(includeblock=2 separator="/" include=first)|"Name":"||"|"} *enable for vietnamese title index_title.scrub {multi(includeblock=2 lang=en separator="/" include=last)|"Name":"||"|"} *enable for english title * index_titleoriginal.modify {clear('index_title')} index_description.scrub {single|"BodyContent":"||"|"} index_description.modify {remove|\\r} index_description.modify {remove|\\n} index_description.modify {cleanup} index_category.scrub {single|"Genres":"||"|"} index_temp_1.modify {substring(type=word)|'config_xmltv_id' 0 1} index_category.modify {clear(~ 'index_temp_1')} index_director.scrub {single(separator=", ")|"Director":"||"|"} index_actor.scrub {single(separator=", ")|"Cast":"||"|"} index_showicon.scrub {single|"Images":"||"|"} * index_temp_1.modify {substring(type=regex)|'index_title' "S\d+"} *season index_temp_2.modify {substring(type=regex)|'index_title' "EP\d+"} *episode * index_temp_2.modify {replace|EP0|E} index_temp_2.modify {replace|EP|E} index_episode.modify {addstart('index_temp_1' not "")|'index_temp_1'} index_episode.modify {addend('index_temp_2' not "")|'index_temp_2'} index_title.modify {remove(type=regex)|S\d+,\sEP\d+} index_title.modify {remove(type=regex)|,\sS\d+} index_title.modify {remove(type=regex)|,\sEP\d+} * index_temp_3.scrub {single|,"EpgId":"||"|"} end_scope * index_urlshow.modify {addstart|http://217.199.160.20/kplus_vn_showdetails.php?epgid='index_temp_3'&channelid='index_variable_element'} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} title.scrub {multi(includeblock=2 separator="/" include=first)|"Name":"||"|"} * title.modify {remove(type=regex)|S\d+,\sEP\d+} title.modify {remove(type=regex)|,\sS\d+} title.modify {remove(type=regex)|,\sEP\d+} * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *index_site_id.scrub {|} *index_temp_9.scrub {multi(debug)|"Channels":|||} *index_site_id.modify {substring(type=regex)|'index_temp_9' "\"Id\":(.+?),"} *index_site_channel.modify {substring(type=regex)|'index_temp_9' "\"Name\":\"(.+?)\""} *scope.range {(channellist)|end} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} *end_scope ** @auto_xml_channel_end