**------------------------------------------------------------------------------------------------ * @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")|} actor.modify {cleanup(tags="<"">")} actor.modify {cleanup} director.scrub {multi(max=2)|
  • Regie
  • |
  • |
  • |} presenter.scrub {multi(max=2)|
  • Moderation
  • |
  • |
  • |} scope.range{(showdetails)|end} rating.scrub {regex||

    (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|