73 lines
3.2 KiB
INI
Executable File
73 lines
3.2 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: tele.ch
|
|
* @MinSWversion:
|
|
* @Revision 0 - [17/03/2016] 1NSdbZVbpZDX
|
|
* - creation
|
|
* @Remarks:
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
|
|
site {url=tele.ch|timezone=Europe/Zurich|maxdays=18.1|cultureinfo=de-CH|charset=UTF-8|titlematchfactor=90|nopageoverlaps|firstshow=now}
|
|
*site {ratingsystem=ES|episodesystem=onscreen|grabengine=|firstshow=0|firstday=0000000}
|
|
|
|
urldate.format {daycounter|0}
|
|
*subpage.format {number||1|}
|
|
url_index{url|https://www.tele.ch/tv-programm/uebersicht/|channel|}
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages
|
|
|
|
index_showsplit.scrub {multi|quicklist">|<a href="|</a>|</ul>}
|
|
index_start.scrub {regex(pattern="dd.M.yyyy, HH:mm")||\((\d{2}\.\d{1,2}\.\d{4},\s\d{2}:\d{2})\)||}
|
|
index_title.scrub {regex ||">\n\s*(.*?)\s\(\d{2}||}
|
|
index_title.modify {addstart('index_title' "")|To Be Announced}
|
|
*index_urlchannellogo {url| }
|
|
*
|
|
index_urlshow.scrub {single |../sendung/||">|}
|
|
index_urlshow.modify {addstart |https://www.tele.ch/tv-programm/sendung/}
|
|
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages
|
|
*
|
|
title.scrub {single|margin clear">||</h1>|}
|
|
title.modify {addstart('title' "")|'index_title'}
|
|
titleoriginal.scrub {single |Originaltitel:</span> ||</li>|}
|
|
subtitle.scrub {single |</h1>|class="margin">||</p>|}
|
|
subtitle.modify {cleanup}
|
|
description.scrub {single |<br/>|<p class="margin">||</p>|}
|
|
description.modify {cleanup}
|
|
description.modify {clear('description' "-")}
|
|
director.scrub {single|director: ||</li>|}
|
|
actor.scrub {multi |h2>Darsteller</h2>|<li>|</li>|</ul>}
|
|
*presenter.scrub {single|}
|
|
producer.scrub {single|producer: ||</li>|}
|
|
writer.scrub {single|<li>scriptwriter: ||</li>|}
|
|
*composer.scrub {single|}
|
|
*rating.scrub {multi|}
|
|
*ratingicon.scrub {multi|}
|
|
category.scrub {single|class="detail">||,|}
|
|
productiondate.scrub {single |class="detail">||</p>|}
|
|
*starrating.scrub {single|}
|
|
*episode.scrub {single|}
|
|
*subtitles.scrub {single|}
|
|
*premiere.scrub {single|}
|
|
*previousshown.scrub {single|}
|
|
showicon.scrub {single |bc-image-div">|src="|"|class="bc-image"/>}
|
|
showicon.modify {addstart (notnull)|https://www.tele.ch}
|
|
country.scrub {regex||<p class="detail">[^,]*,(.*?)</p>||}
|
|
country.modify {remove|'productiondate'}
|
|
country.modify {cleanup}
|
|
actor.modify {substring(type=regex)|"(.+?)\("}
|
|
*
|
|
* operations:
|
|
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** @auto_xml_channel_start
|
|
*url_index {url |https://www.tele.ch/tv-programm/uebersicht/alle_sender}
|
|
*index_site_channel.scrub {multi|A-Z</span>|alt="|" />|</div></div></div>}
|
|
*index_site_id.scrub {multi|A-Z</span>|<a href="|">|</div></div></div>}
|
|
*scope.range {(channellist)|end}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*end_scope
|
|
** @auto_xml_channel_end
|