**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: ictv.net.au * @MinSWversion: V1.1.1/51 * - needs half hour timezone * @Revision 2 - [2013/07/25] Jan van Straaten * - new showsplit with a date filter * @Revision 1 - [2013/07/22] Jan van Straaten * - firstshow = 3 , skipps the previous days shows on the index page * @Revision 0 - [2013/07/20] Sean McManus, Jan van Straaten * - created ini * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ * site {url=ictv.net.au|timezone=UTC+09:30|maxdays=7|cultureinfo=en-AU|charset=ISO-8859-1|titlematchfactor=90} * index_variable_element.modify {calculate(format=date,-MMMM-dd-yyyy)|'urldate'} index_variable_element.modify {cleanup(style=lower)} url_index {url()|http://www.ictv.net.au/|urldate|####|.html} url_index.modify {replace()|####|'index_variable_element'} urldate.format {weekdayname|76-monday|77-tuesday|84-wednesday|79-thursday|80-friday|81-saturday|82-sunday} * this site has an varying number of shows from the previous evening on the index page * the following loop solves this problem by selecting only the shows of the day of the index_page scope.range {(splitindex)|end} index_showsplit.scrub {multi|
|||} *split in index page index_showsplit.modify {|} index_temp_1.modify {calculate(type=element format=F0)|'index_showsplit' #} index_temp_3.modify {calculate(format=date,vba)|'now'} * used to calculate the date loop {('index_temp_1' > "0" max=10)|end} * step through the index page, from last to first index_temp_1.modify {calculate(format=f0)|1 -} * index of the page to examine index_temp_2.modify {substring(type=element)|'index_showsplit' 'index_temp_1' 1} * copy of the page index_temp_2.modify {replace|