**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: rtv.de
* @MinSWversion: 1.1.1/56.27
* @Revision 0 - [24/07/2016] Blackbear199
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=rtv.de|timezone=Europe/Berlin|maxdays=28|cultureinfo=de-DE|charset=UTF-8|titlematchfactor=90|keepindexpage}
site {ratingsystem=DE|episodesystem=onscreen}
url_index{url|http://www.rtv.de/tv-programm/schnelluebersicht.html?date=|urldate|&stationType=-1&start=|subpage|}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datenumber|UNIX|0}
subpage.format {list|5|7|9|11|13|15|17|19|21|23|1|3}
*
index_variable_element.modify {set|'config_site_id'}
index_showsplit.scrub {multi(includeblock="/senderinformationen/'index_variable_element'/)|
|
}
scope.range{(splitindex)|end}
index_temp_1.modify {substring(type=regex)|'index_showsplit' "(.+?)<\/div>"}
index_temp_1.modify {cleanup(removeduplicates=equal,100 span=2 link="index_showsplit")}
end_scope
*
index_urlshow {url|http://www.rtv.de|
|">}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
index_urlchannellogo {url||}
*
index_start.scrub {single| || |}
index_title.scrub {single|title="||"|"}
*
scope.range{(showdetails)|end}
title.scrub {single||| }
titleoriginal.scrub {single|Originaltitel:|||}
subtitle.scrub {multi(excludeblock="Folge")||| |}
description.scrub {single| | || | | |
}
director.scrub {single(separator=", ")|
Regie:||
|}
actor.scrub {multi|Schauspieler:||
|}
presenter.scrub {single(separator=", ")|Moderation:|||}
writer.scrub {single(separator=", ")|Drehbuch:|||}
composer.scrub {single(separator=", ")|Musik:|||}
rating.scrub {single|Altersempfehlung: ab ||| ab }
category.scrub {single|||
|}
*
country.scrub {single|||
|}
productiondate.modify {substring(type=regex)|'country' "\s(\d{4})"}
country.modify {remove(type=regex)|\s'productiondate'}
country.modify {replace|, |\|}
*
starrating.scrub {single|}
showicon.scrub {single|
|src="|"| | }
showicon.modify {clear(~ ".mp4")}
*
episode.scrub {multi(pattern="Folge: 'E1'" includeblock="Folge")|
||
|
}
*
titleoriginal.modify {clear('title')}
description.modify {cleanup(tags="<"">")}
director.modify {cleanup(tags="<"">")}
actor.modify {cleanup(tags="<"">")}
presenter.modify {cleanup(tags="<"">")}
writer.modify {cleanup(tags="<"">")}
composer.modify {cleanup(tags="<"">")}
end_scope
*
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*url_index {url|http://www.rtv.de/index.php?Itemid=70&option=com_pitbroadcast&task=stationsMenu&redirect=1}
*index_site_id.scrub {multi|||}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
** @auto_xml_channel_end