66 lines
3.4 KiB
INI
Executable File
66 lines
3.4 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: 7tv.de
|
|
* @MinSWversion: V2.1.5
|
|
* @Revision 2 - [16/10/2017] mat8861 - fix title
|
|
* @Revision 1 - [29/09/2017] mat8861 - fix showsplit
|
|
* @Revision 0 - [28/08/2017] mat8861 & BlackBear199
|
|
* - creation
|
|
* @Remarks: *Set your timezone, if you do not know it, set timezone=? and select the most appropriate *
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
site {url=7tv.de|timezone=Europe/Berlin|maxdays=7|cultureinfo=de-DE|charset=UTF-8|nopageoverlaps|titlematchfactor=40}
|
|
site {episodesystem=onscreen}
|
|
*
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
url_index{url|https://epgservice.7tv.de/broadcast/|channel|/|urldate|}
|
|
urldate.format {datestring|yyyy-MM-dd}
|
|
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
index_urlshow {url||{"type":"maxdome","url":"||"}]},}
|
|
index_urlshow.modify {cleanup(style=jsondecode)}
|
|
*
|
|
scope.range{(splitindex)|end}
|
|
index_showsplit.scrub {regex()||({"id":"\d+","type":"broadcast".*?}]},)||}
|
|
sort_by.scrub {single(target="index_showsplit")|"startTime":||,",|"}
|
|
sort_by.modify {calculate(target="index_showsplit" format=date,unix)}
|
|
index_showsplit.modify {sort(ascending,string)}
|
|
index_showsplit.modify {cleanup(style=unidecode)}
|
|
index_showsplit.modify {cleanup(style=jsondecode)}
|
|
end_scope
|
|
*
|
|
scope.range{(indexshowdetails)|end}
|
|
index_start.scrub {regex||"startTime":(\d{10}),"endTime"||}
|
|
index_stop.scrub {regex||"endTime":"(\d{10}),"||}
|
|
index_title.scrub {regex||"title":"([^"]*)"}||}
|
|
index_title.modify {cleanup(style=jsondecode)}
|
|
index_subtitle.scrub {regex||"promamsBroadcastId":"\d+","title":"(.+?[^"])","description":"||}
|
|
index_description.scrub {single|","description":"||","}
|
|
index_showicon.scrub {single(not="")|{"type":"image","subType":"art_direction","url":"||","}
|
|
index_showicon.modify {cleanup(style=jsondecode)}
|
|
index_showicon.modify{addend(not="")|/profile:ezone-epg140}
|
|
index_episode.scrub {regex(pattern="episode 'E1' season 'S1'""Staffel 'S1' Folge 'E1'")||"(episode)".*?number":(\d+).*?"(season)".*?number":(\d+)||}
|
|
index_episode.modify {replace|\|| }
|
|
end_scope
|
|
*
|
|
scope.range{(showdetails)|end}
|
|
title.scrub {single|<section class="col-description">|"alternativeHeadline">|</h2>|</div>}
|
|
title.modify {addstart|}
|
|
episode.scrub {single|<section class="col-description">|</span><br/>|</h1>|</div>}
|
|
episode.modify {remove|,}
|
|
country.scrub {single(exclude="datePublished")|<ul class="movie-details-basic">|<li>|</li>|</li>}
|
|
productiondate.scrub {single|<span itemprop="datePublished">||</span>}
|
|
director.scrub {multi(max=3)|<li itemprop="director"|<span itemprop="name">|</span>|</li>}
|
|
actor.scrub {multi(max=3)|<li itemprop="actor"|<span itemprop="name">|</span>|</li>}
|
|
end_scope
|
|
*
|
|
*
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** @auto_xml_channel_start
|
|
*index_site_id.scrub {|}
|
|
*index_site_id.modify {set|pro7\|sat1\|pro7maxx\|kabel1\|kabeleinsdoku\|sixx\|sat1gold\|puls8\|puls4}
|
|
*index_site_channel.modify {set|ProSieben\|Sat.1\|ProSieben Maxx\|Kabeleins\|Kabeleinsdoku\|SIXX\|Sat.1 Gold\|Puls8\|Puls4}
|
|
** @auto_xml_channel_end
|