**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: rtvslo.si * @MinSWversion: V0 * none * @Revision 1 - [5/12/2011] Jan van Straaten * none * @Remarks: * a Slovenian site * @header_end **------------------------------------------------------------------------------------------------ site {url=rtvslo.si|timezone=UTC+01:00|maxdays=17|cultureinfo=sl-SI|charset=UTF-8|titlematchfactor=90} *site {ratingsystem=ES|episodesystem=onscreen|grabengine=|firstshow=0|firstday=0000000} url_index{url|http://www.rtvslo.si/modload.php?&c_mod=rspored-v2&izbran_dan=|urldate|&izbran_program=|channel} http://www.rtvslo.si/modload.php?&c_mod=rspored-v2&izbran_dan=2014-02-03&izbran_program=2 urldate.format {datestring|yyyy-MM-dd} index_showsplit.scrub {multi||||
} index_urlshow {url|http://www.rtvslo.si/|||||} index_title.scrub {single|||} *index_subtitle.scrub {single(separator=": " exclude=first)|||} * * the following creates a channel list file: *index_site_channel.scrub {multi|

Spored

|">||

Avdio / Video

} *index_site_id.scrub {multi|

Spored

|_program=|">|

Avdio / Video

} * * three types of detail pages : * 1 with
title.scrub {single|
|
||
} *subtitle.scrub {single(separator=": " exclude=first)|
|
||
} description.scrub {single|
|Napovednik:|
} *Napovednik = trailer * * 2 detail page with *title.scrub {single|
|||} description.scrub {single(separator="

" exclude="

|Opis:||
} description.scrub {single||Napovednik:||} category.scrub {single(separator=" - ")||Zvrst:|
|
} * * 3 detail page with *title.scrub {single|
|||} *description.scrub {single(separator="

" exclude="

|} *description.scrub {single||
Napovednik:||Napovednik:||
} *category.scrub {single(separator=" - ")||Zvrst:|
|
} * * operations: title.modify {addstart("")|'index_title'} description.modify {replace|
| - } description.modify {cleanup} * operations loop, removes all links in description: loop {('temp_1' not "-1" max=20)|4} * loops the next 4 lines, while temp_1 (indexof " @} * indexof "> temp_2.modify {calculate(format=F0)|'temp_2' 'temp_1' - 1 +} * length of link description.modify {remove('temp_1' not "-1" notnull type=char)|'description' 'temp_1' 'temp_2'} * loop end category.modify {cleanup(style=sentence}