28.11.2020, 14:02
Ahoj,
defaultny csfd.cz.ini subor pre instalaciu wg++ 2.1.0 mi nefungoval, tak som ho trochu upravil:
defaultny csfd.cz.ini subor pre instalaciu wg++ 2.1.0 mi nefungoval, tak som ho trochu upravil:
Kód:
**------------------------------------------------------------------------------------------------
* @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|&}
* url_preload.headers {method=POST|allowautoredirect=false}
* url_preload.headers {customheader=Accept-Encoding=gzip,deflate}
* url_preload.headers {postdata=station0=|channel|&_do=stationSelectForm-submit}
*
** experiment without preload, also works!!
url_index{url()|https://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'&_do=stationSelectForm-submit}
**
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {daycounter|0}
*
index_showsplit.scrub {multi|<div id="box|||</li>}
*
index_urlshow {url|https://www.csfd.cz|<a href="||"|"}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
*
index_urlchannellogo {url|https:|<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_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}
productiondate.scrub {single|<span itemprop="dateCreated">||</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
