**------------------------------------------------------------------------------------------------ * @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|https://www.csfd.cz/televize/?day=|urldate|#move-to-station-0} url_index.headers {customheader=X-Requested-With=XMLHttpRequest} url_index.headers {customheader=Accept-Encoding=gzip,deflate} url_preload {url|https://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|https://www.csfd.cz/televize/?day=|urldate|&do=stationSelectForm-submit} *Uurl_index.headers {method=POST|allowautoredirect=true} *url_index.headers {customheader=X-Requested-With=XMLHttpRequest} *url_index.headers {customheader=Accept-Encoding=gzip,deflate} *url_index.headers {postdata=station0='channel'&station1=&station2=&station3=&station4=&stationNew=} ** urldate.format {daycounter|0} * index_showsplit.scrub {multi|
|||

|

} index_title.scrub {single(separator=" - " include=first)||||} index_subtitle.scrub {single(separator=" - " include=last)||||} index_episode.scrub {single(pattern="S'S1'E'E1'""S'S1'""E'E1'")|(||)|)} *index_productiondate.scrub {single|(||)|)} *index_productiondate.scrub {single||||} *fraX * index_title.modify {remove(type=regex)|")} index_subtitle.modify {remove(type=regex)|")} index_subtitle.modify {clear(~ "Episode")} index_subtitle.modify {clear('index_title')} * title.scrub {single(separator=" / "" - "" (" include=first)||||} titleoriginal.scrub {single|
    |

    |

    |
} description.scrub {single|

Obsah|
|
|} *description.scrub {single|

Obsah|
|
|} *description.scrub {single(separator=* max=100)||||<} *fraXTEST director.scrub {single(separator=", " max=2)|

Režie:

|||
} actor.scrub {single(separator=", " max=6)|

Hrají:

|||} producer.scrub {single(separator=", " max=2)|

Producenti:

|||} writer.scrub {single(separator=", " max=2)|

Scénář:

|||} composer.scrub {single(separator=", " max=2)|

Hudba:

|||} category.scrub {single(separator=" / ")|

||

|

} country.scrub {single(separator=" / ")|

||, |">} *fraX rating.scrub {single||">} *fraX showicon.scrub {single|

||||} *fraX * titleoriginal.modify {clear('title')} description.modify {cleanup(tags="")} 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")} *fraX rating.modify {clear("0.0")} rating.modify {clear("0")} *fraX rating.modify {addend('rating' not="")|%} *fraX showicon.modify {clear(~ "poster-free")} showicon.modify {addstart(not "")|http:} *episode.modify {clear(=" ")} *fraX ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index {url|https://www.csfd.cz/televize/} *index_site_id.scrub {multi(exclude="- odebrat stanici -")|
|