**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: programtv.onet.pl
* @MinSWversion: 1.1.1/54
* @Revision 0 - [29/03/2016] Blackbear199
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=programtv.onet.pl|timezone=Europe/Warsaw|maxdays=7|cultureinfo=pl-PL|charset=UTF-8|titlematchfactor=90|episodesystem=onscreen}
url_index{url|http://programtv.onet.pl|channel||urldate|}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {list||?dzien=1|?dzien=2|?dzien=3|?dzien=4|?dzien=5|?dzien=6}
*
index_showsplit.scrub {multi|
|
|">}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
*
index_date.scrub {single(force pattern="yyyy-MM-dd")||||}
index_start.scrub {single||||}
index_title.scrub {single||||||}
*index_description.scrub {single|||
|} *index page
index_episode.modify {substring(type=regex)|'index_title' "\s*(\d*, odc.\s\d*\/*\d*)"}
index_urlchannellogo {url(include=first)|http:||
|||}
titleoriginal.scrub {single|||
|}
description.scrub {single|||
|} * showdetail page
director.scrub {single(separator=",")||||}
presenter.scrub {single(separator=",")||||}
*
temp_1.scrub {single||||}
temp_1.modify {remove(type=regex)|\(.+?\)}
actor.modify {substring(type=regex)|'temp_1' "(?:,?([^,]*))*"}
*
writer.scrub {single(separator=",")||||}
starrating.scrub {multi|Ocena|||">}
rating.scrub {single||">}
productiondate.scrub {single|"datePublished": "||"|"}
country.scrub {single|"countryOfOrigin": "||"|"}
episode.modify {substring(type=regex)|'title' "\s*(\d*, odc.\s\d*\/*\d*)"}
showicon.scrub {single|"thumbnailUrl": "||"|"}
*
index_title.modify {remove|'index_episode'}
title.modify {remove|'episode'}
index_category.modify {replace|-| }
index_category.modify {cleanup(style=name)}
episode.modify {replace| odc. | E}
episode.modify {remove|,}
episode.modify {addstart('episode' not "")|S}
episode.modify {replace|S E|E}
*
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*url_index{url|http://programtv.onet.pl/stacje}
*index_site_channel.scrub {multi| }
*index_site_id.scrub {multi|