**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: srf.ch
* @MinSWversion: V1.1.1/56.29
* @Revision 1 - [24/7/2017] mat8861 & BlackBear199
* add elements
* @Revision 0 - [18/05/2017] mat8861
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=srf.ch|timezone=Europe/Zurich|maxdays=7|cultureinfo=de-CH|charset=UTF-8|nopageoverlaps|titlematchfactor=90}
site {episodesystem=onscreen|}
url_index{url|https://www.srf.ch/programm/tv/sender/|channel|/|urldate|}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datestring|dd-MM-yyyy}
*
index_urlshow {url|http:|}
index_variable_element.modify {set|'config_site_id'}
index_urlchannellogo.modify {addstart|https://www.srf.ch/programm/tv/assets/img/logos/'index_variable_element'.svg}
index_showsplit.scrub {multi(exclude="anschliessend")|(\d{2}:\d{2})||}
index_stop.scrub {regex||show__stop">\s-\s(\d{2}:\d{2})||}
index_title.scrub {multi|
|}
index_subtitle.scrub {regex||show__subtitle">(.*?).*|">|
(.*?)
||} description.modify {cleanup} episode.scrub {single(pattern="Staffel 'S1', Episode 'E1'/'Et1'""Staffel 'S1'""Episode 'E1'/'Et1'""Episode 'E1'" include="Staffel""Episode")|(Ab \d+ Jahren)
||} category.scrub {regex||([^<]+)
[^<]+[^A-Z]+[A-Z]+\s[^\d]+\d{4}[^<]*
||} category.modify {clear(~ ".")} temp_1.scrub {regex||[^A-Z]+([A-Z]+\s[^\d]+\d{4})[^<]*
||} temp_1.modify {cleanup} temp_1.modify {substring(type=regex)|"[A-Z]+\s\d{4}"} productiondate.modify {substring(type=regex)|'temp_1' "\d{4}"} temp_1.modify {remove|'productiondate'} country.modify {addstart('temp_1' not "")|'temp_1'} end_scope * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE /CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index{url|https://www.srf.ch/programm/tv/sender/srf-1} *index_site_channel.scrub {multi|Tagesprogramm|" title="|"|>} *index_site_id.scrub {multi|