**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: apna.tv * @MinSWversion: V1.57 * @Revision 0 - [03/10/2016] Blackbear199 * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=apna.tv|timezone=UTC+05:00|maxdays=7.1|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90} site {ratingsystem=US|episodesystem=onscreen|firstday=1234560} url_index{url|http://apna.tv/program-guide/} url_index.headers {customheader=Accept-Encoding=gzip,deflate} urldate.format {datestring|ddd} * index_showsplit.scrub {multi(include="Daily""Sun""Mon""Tues""Wed""Thurs""Fri""Sat")||||} scope.range{(splitindex)|end} index_showsplit.modify {cleanup(removeduplicates span=2)} index_showsplit.modify {replace|\||##} index_temp_9.modify {addstart|'index_showsplit'####'index_showsplit'####'index_showsplit'####'index_showsplit'####'index_showsplit'####'index_showsplit'####'index_showsplit'} index_temp_9.modify {replace|####|\|} index_temp_1.modify {set|0} loop{(each "index_temp_2" in 'index_temp_9')|end} index_temp_5.modify {clear} index_temp_8.modify {set|Mon\|Tues\|Wed\|Thurs\|Fri\|Sat\|Sun} index_temp_8.modify {substring(type=element)|'index_temp_8' 'index_temp_1' 1} index_temp_7.modify {substring(type=regex)|'index_temp_2' "([^<]*<\/td>[^<]*[^<]*'index_temp_8'[^<]*<[^#]*)##"} index_temp_7.modify {replace|\||##} index_temp_6.modify {substring(type=regex)|'index_temp_2' "([^<]*<\/td>[^<]*[^<]*Daily[^<]*<[^#]*)##"} index_temp_6.modify {replace|\||##} index_temp_5.modify {addend|'index_temp_7'##'index_temp_6'} index_temp_5.modify {replace|##|\|} index_temp_3.modify {substring(type=regex)|'index_temp_5' "(\d{1,2}:\d{2}\s[AP]M)<\/td>"} index_temp_3.modify {cleanup(removeduplicates=equal,100 span=1 keepfirst link="index_temp_5")} *change keepfirst to keeplast to keep second show index_temp_5.modify {sort(ascending,string)} sort_by.scrub {single(target="index_temp_5")||||} sort_by.modify {calculate(target="index_temp_5" format=date,H:mm tt)} index_temp_5.modify {replace|\||##} index_temp_4.modify {addend|'index_temp_5'##} index_temp_1.modify {calculate(format=F0)|1 +} end_loop index_showsplit.modify {clear} index_showsplit.modify {addstart|'index_temp_4'} index_showsplit.modify {replace|##|\|} end_scope * index_urlchannellogo {url||} * index_start.scrub {single||||} index_title.scrub {single||||} index_category.modify {addstart|Show} * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *index_site_id.scrub {|} *index_site_id.modify {set|apna} *index_site_channel.modify {set|APNA} ** @auto_xml_channel_end