91 lines
4.9 KiB
INI
Executable File
91 lines
4.9 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: csfd.cz
|
|
* @MinSWversion: V2.0.1.1
|
|
* @Revision 1 - [02/03/2017] Jan van Straaten
|
|
* no need for PHP anymore, uses preload in method POST
|
|
* @Revision 0 - [06/02/2017] Blackbear199
|
|
* - creation, php solution
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
site {url=csfd.cz|timezone=Europe/Prague|maxdays=18|cultureinfo=cs-CZ|charset=UTF-8|titlematchfactor=90}
|
|
site {ratingsystem=CZ|episodesystem=onscreen|nopageoverlaps}
|
|
*
|
|
*url_index{url(debug preload="http://www.csfd.cz/televize/?day=|urldate|&do=stationSelectForm-submit")|http://www.csfd.cz/televize/?day=|urldate|#move-to-station-0}
|
|
url_index{url()|http://www.csfd.cz/televize/?day=|urldate|#move-to-station-0}
|
|
url_preload {url()|http://www.csfd.cz/televize/?day=|urldate|&do=stationSelectForm-submit}
|
|
url_preload.headers {method=POST|allowautoredirect=false}
|
|
url_preload.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
url_preload.headers {postdata=station0='channel'&station1=&station2=&station3=&station4=&stationNew=}
|
|
|
|
** experiment without preload, also works!!
|
|
*url_index{url()|http://www.csfd.cz/televize/?day=|urldate|&do=stationSelectForm-submit}
|
|
*url_index.headers {method=POST|allowautoredirect=true}
|
|
*url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
*url_index.headers {postdata=station0='channel'&station1=&station2=&station3=&station4=&stationNew=}
|
|
**
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
urldate.format {daycounter|0}
|
|
*
|
|
index_showsplit.scrub {multi|<div id="box|||</li>}
|
|
*
|
|
index_urlshow {url|http://www.csfd.cz|<a href="||"|"}
|
|
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
*
|
|
index_urlchannellogo {url|http:|<div class="station-name">|<img src="|?h|</div>}
|
|
*
|
|
index_start.scrub {single|<p class="time">||</p>|</p>}
|
|
index_title.scrub {single(separator=" - " include=first)|<span class="name">||</span>|</span>}
|
|
index_subtitle.scrub {single(separator=" - " include=last)|<span class="name">||</span>|</span>}
|
|
index_episode.scrub {single(pattern="S'S1'E'E1'""S'S1'""E'E1'")|<span class="series">(||)</span>|)</span>}
|
|
index_productiondate.scrub {single|<span class="film-year">(||)</span>|)</span>}
|
|
*
|
|
index_title.modify {remove(type=regex)|<span.*$}
|
|
index_title.modify {cleanup(tags="<"">")}
|
|
index_subtitle.modify {remove(type=regex)|<span.*$}
|
|
index_subtitle.modify {cleanup(tags="<"">")}
|
|
index_subtitle.modify {clear(~ "Episode")}
|
|
index_subtitle.modify {clear('index_title')}
|
|
*
|
|
title.scrub {single(separator=" / "" - "" (" include=first)|<title>||</title>|</title>}
|
|
titleoriginal.scrub {single|<ul class="names">|<h3>|</h3>|</ul>}
|
|
description.scrub {single|<h3>Obsah|<div data-truncate="570">|</div>|</li>}
|
|
director.scrub {single(separator=", " max=2)|<h4>Režie:</h4>|<span data-truncate="60" itemprop="director">|</span>|</div>}
|
|
actor.scrub {single(separator=", " max=6)|<h4>Hrají:</h4>|<span data-truncate="340">|</span>|</div>}
|
|
producer.scrub {single(separator=", " max=2)|<h4>Producenti:</h4>|<span data-truncate="60">|</span>|</div>}
|
|
writer.scrub {single(separator=", " max=2)|<h4>Scénář:</h4>|<span data-truncate="60">|</span>|</div>}
|
|
composer.scrub {single(separator=", " max=2)|<h4>Hudba:</h4>|<span data-truncate="60">|</span>|</div>}
|
|
category.scrub {single(separator=" / ")|<p class="genre">||</p>|</p>}
|
|
country.scrub {single(separator=" / ")|<p class="origin">||, <span|, <span}
|
|
starrating.scrub {single|<meta itemprop="ratingValue" content="||">|">}
|
|
showicon.scrub {single|<div id="poster" class="image">|<img src="|?h|</div>}
|
|
*
|
|
titleoriginal.modify {clear('title')}
|
|
description.modify {cleanup(tags="<span""</span>")}
|
|
description.modify {cleanup}
|
|
*
|
|
director.modify {cleanup(tags="<"">")}
|
|
actor.modify {cleanup(tags="<"">")}
|
|
producer.modify {cleanup(tags="<"">")}
|
|
writer.modify {cleanup(tags="<"">")}
|
|
composer.modify {cleanup(tags="<"">")}
|
|
*
|
|
starrating.modify {calculate(format=F1)|10 /}
|
|
starrating.modify {clear("0.0")}
|
|
showicon.modify {clear(~ "poster-free")}
|
|
showicon.modify {addstart(not "")|http:}
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** @auto_xml_channel_start
|
|
*url_index {url|http://www.csfd.cz/televize/}
|
|
*index_site_id.scrub {multi(debug exclude="- odebrat stanici -")|<div class="station-name">|<option |/option>|</select>}
|
|
*scope.range{(channellist)|end}
|
|
*index_site_channel.modify {addstart|'index_site_id'}
|
|
*index_site_id.modify {substring(type=regex)|"value=\"([^\"]*)\""}
|
|
*index_site_channel.modify {substring(type=regex)|">([^<]*)<"}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*end_scope
|
|
** @auto_xml_channel_end
|