**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: entertainment.ie * @MinSWversion: V0 * none * @Revision 3 - [17/08/2014] Francis De Paemeleere * fix neutral cultureinfo * @Revision 2 - [10/08/2012] Willy De Wilde/ jan van Straaten * loop in showsplit * @Remarks: * none * @header_end **------------------------------------------------------------------------------------------------ site {url=entertainment.ie|timezone=UTC+00:00|maxdays=6|cultureinfo=en-IE|charset=iso-8859-1|titlematchfactor=90} url_index{url|http://entertainment.ie/tv/display.asp?channelid=|channel|&programme=&programme_day=|urldate|&programme_time=|subpage|&submit=Search} urldate.format {datestring|dd+MMMM+yyyy} subpage.format{list|allday|time8} * *index_showsplit.scrub {multi||} * * the following loop removes identical shows between 23:00 and 01:00, caused by overlap of the subpage content around midnight scope.range {(splitindex)|end} index_temp_1.modify {calculate(type=element format=F0)|'index_showsplit' #} * number of index shows loop {('index_temp_1' > "0" max=200)|end} index_temp_1.modify {calculate(format=F0)|1 -} *decrease loop counter index_temp_6.modify {substring(type=element)|'index_showsplit' 'index_temp_1' 1} *show to inspect index_temp_2.modify {calculate(format=F0)|'index_temp_6' "" @} * start pos starttime index_temp_2.modify {calculate(format=F0)|4 +} * move 4 pos forward , exact pos of the starttime index_temp_2.modify {substring(type=char)|'index_temp_6' 'index_temp_2' 5} *starttime, format 05:30 index_temp_3.modify {calculate(format=F0)|0 *} * reset to 0 * test condition , index_temp_3 will be 1 if met index_temp_3.modify {calculate('index_temp_2' <= "1" format=F0)|1 +} * condition <= 01:00 index_temp_3.modify {calculate('index_temp_2' >= "23" format=F0)|1 +} * condition >= 23:00 * 1 index_temp_4.modify {calculate('index_temp_1' > "0" format=F0)|'index_temp_1' 1 -} * showindex index next index_temp_5.modify {substring('index_temp_3' > "0" type=element)|'index_showsplit' 'index_temp_4' 1} * 1st next show to inspect if condition met index_showsplit.modify {remove('index_temp_6' 'index_temp_5' type=element)|'index_showsplit' 'index_temp_1' 1} *remove if same index_temp_5.modify {clear} * 2 index_temp_4.modify {calculate('index_temp_1' > "1" format=F0)|'index_temp_4' 1 -} * showindex index next index_temp_5.modify {substring('index_temp_3' > "0" type=element)|'index_showsplit' 'index_temp_4' 1} *2nd next show to inspect if condition met index_showsplit.modify {remove('index_temp_6' 'index_temp_5' type=element)|'index_showsplit' 'index_temp_1' 1} *remove if same index_temp_5.modify {clear} * 3 index_temp_4.modify {calculate('index_temp_1' > "2" format=F0)|'index_temp_4' 1 -} * showindex index next index_temp_5.modify {substring('index_temp_3' > "0" type=element)|'index_showsplit' 'index_temp_4' 1} *3rd next show to inspect if condition met index_showsplit.modify {remove('index_temp_6' 'index_temp_5' type=element)|'index_showsplit' 'index_temp_1' 1} *remove if same index_temp_5.modify {clear} * 4 index_temp_4.modify {calculate('index_temp_1' > "3" format=F0)|'index_temp_4' 1 -} * showindex index next index_temp_5.modify {substring('index_temp_3' > "0" type=element)|'index_showsplit' 'index_temp_4' 1} *4th next show to inspect if condition met index_showsplit.modify {remove('index_temp_6' 'index_temp_5' type=element)|'index_showsplit' 'index_temp_1' 1} *remove if same index_temp_5.modify {clear} * 5 index_temp_4.modify {calculate('index_temp_1' > "4" format=F0)|'index_temp_4' 1 -} * showindex index next index_temp_5.modify {substring('index_temp_3' > "0" type=element)|'index_showsplit' 'index_temp_4' 1} *5th next show to inspect if condition met index_showsplit.modify {remove('index_temp_6' 'index_temp_5' type=element)|'index_showsplit' 'index_temp_1' 1} *remove if same index_temp_5.modify {clear} * 6 index_temp_4.modify {calculate('index_temp_1' > "5" format=F0)|'index_temp_4' 1 -} * showindex index next index_temp_5.modify {substring('index_temp_3' > "0" type=element)|'index_showsplit' 'index_temp_4' 1} *6th next show to inspect if condition met index_showsplit.modify {remove('index_temp_6' 'index_temp_5' type=element)|'index_showsplit' 'index_temp_1' 1} *remove if same index_temp_5.modify {clear} end_loop end_scope.range * index_start.scrub {single|||} index_title.scrub {single|||<} index_subtitle.scrub {single|||<} index_urlshow {url|http://entertainment.ie|||} description.scrub {single|
|

|

|
} * * enable the next two lines to create a channel list *index_site_channel.scrub {multi||