epg/siteini.pack/Indonesia/telkomvision.com.ini

60 lines
2.7 KiB
INI
Executable File

**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: telkomvision.com
* @MinSWversion: V1.1.1/52
* @Revision 0 - [12/02/2014] Steve Wildmore
* creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=telkomvision.com|timezone=UTC+07:00|maxdays=1|cultureinfo=id-ID|charset=UTF-8|titlematchfactor=90|episodesystem=onscreen}
url_index{url|http://www.telkomvision.com/soap/timetable}
index_variable_element.modify {clear(scope=datelogo)}
index_variable_element.modify {addstart(scope=datelogo)|data-location="'config_site_id'"><h3>'config_display_name'</h3>}
index_showsplit.scrub {multi|'index_variable_element'|||</div></div></div><div class="tl_clear">}
index_showsplit.modify {replace|<div data-show-description|\|}
index_showsplit.modify {replace|<div class="tl_event_details"|\|}
index_showsplit.modify {remove(type=element)|0 1} * remove 1st element
index_temp_3.modify {calculate(type=element format=F0)|'index_showsplit' #} * tot number of elements
index_temp_1.modify {calculate(format=F0)|'index_temp_3' 2 /} * tot/2
index_temp_3.modify {calculate(format=F0)|'index_temp_1' 1 -} * scale to indexes 0-(tot/2-1)
loop {('index_temp_3' > "-1" max=50)|end}
index_temp_2.modify {calculate(format=F0)|'index_temp_3' 'index_temp_1' +} * pointer to element = cur element + tot/2
index_temp_4.modify {substring(type=element)|'index_showsplit' 'index_temp_3' 1}
index_temp_5.modify {substring(type=element)|'index_showsplit' 'index_temp_2' 1}
index_temp_6.modify {addstart|'index_temp_5'}
index_temp_6.modify {addstart|###'index_temp_4'}
index_temp_3.modify {calculate(format=F0)|1 -} * decrease index
end_loop
index_showsplit.modify {clear}
index_showsplit.modify {addstart|'index_temp_6'}
index_showsplit.modify {replace|###|\|}
index_temp_6.modify {clear}
index_start.scrub {single|<span class="tl_event_time|">| - |</span>}
index_title.scrub {single|</span>|<h2>|</h2>|<p class="tl_subtitle">}
index_description.scrub {single|data-start=|">|<div class=|</div>}
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*index_site_channel.scrub {regex||data-location="\d*"><h3>([^<]*)</h3>||}
*index_site_id.scrub {regex||data-location="(\d*)"><h3>[^<]*</h3>||}
*scope.range {(channellist)|end}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
*end_scope
** @auto_xml_channel_end