Files
epg/siteini.pack/Poland/programtv.onet.pl.ini
freearhey a597b11307 Init
2021-03-09 22:46:37 +03:00

88 lines
4.4 KiB
INI
Executable File

**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: programtv.onet.pl
* @MinSWversion: V2.1
* @Revision 2 - [19/01/2020] Mr Groch
* - Fixed country info seperated list in description
* - Fixed category dividing
* - Refined rating system
* - Refined star rating
* - Changed max days to 12
* @Revision 1 - [05/09/2018] Mr Groch
* - Added show info in desc header as option (better than using REX, because of country info), uncomment after "* show info in description header" to enable
* @Revision 0 - [29/03/2016] Blackbear199
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=programtv.onet.pl|timezone=Europe/Warsaw|maxdays=12|cultureinfo=pl-PL|charset=UTF-8|titlematchfactor=90}
site {ratingsystem=PL}
*
site {episodesystem=onscreen} *Enable for Onscreen Episode System
*site {episodesystem=xmltv_ns} *Enable for xmltv_ns Episode System
*
url_index{url|https://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|?dzien=7|?dzien=8|?dzien=9|?dzien=10|?dzien=11|?dzien=12}
*
index_showsplit.scrub {multi|<div class="emissions">|<li class="hh|</li>|</ul>}
*
index_urlshow {url|https://programtv.onet.pl|<a href="||">|">}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
*
index_date.scrub {single(force pattern="yyyy-MM-dd")|<span class="date">|<span>|</span>|</span>}
index_start.scrub {single|<span class="hour">||</span>|</span>}
index_title.scrub {single|<a href=|>|</a>|<span }
index_category.scrub {single|<span class="type">||</span>|</span>}
*index_description.scrub {single|<p>||</p>|</p>} *index page
index_episode.modify {substring(type=regex)|'index_title' "\s*(\d*, odc.\s\d*\/*\d*)"}
index_urlchannellogo {url(include=first)|http:|<span class="logoTV">|<img src="|"|alt}
*
title.scrub {single|<title>||</title>|</title>}
titleoriginal.scrub {single|<h4>||</h4>|</h4>}
description.scrub {single|<p class="entryDesc">||</p>|</p>} * showdetail page
director.scrub {single(separator=",")|<li class="header">Reżyseria:</li>|<li>|</li>|</ul>}
presenter.scrub {single(separator=",")|<li class="header">Gospodarze:</li>|<li>|</li>|</ul>}
*
temp_1.scrub {single|<li class="header">Obsada:</li>|<li>|</li>|</ul>}
temp_1.modify {remove(type=regex)|\(.+?\)}
actor.modify {substring(type=regex)|'temp_1' "(?:,?([^,]*))*"}
*
writer.scrub {single(separator=",")|<li class="header">Scenariusz:</li>|<li>|</li>|</ul>}
starrating.scrub {multi|<span class="rating">Ocena</span>|<span class="stars stars|">|</span>|">}
starrating.modify {addend('starrating' not"")|/5}
rating.scrub {single|<span class="pegi pegi||"></span>|"></span>}
rating.modify {addend('rating' not"")|+}
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}
* show info in description header
*temp_2.modify {addstart('starrating' not"")|##'starrating'}
*temp_2.modify {addstart('rating' not"")|##'rating'}
*temp_2.modify {addstart('productiondate' not"")|##'productiondate'}
*temp_2.modify {addstart(separator="/" 'country' not"")|##'country'}
*temp_2.modify {replace()|##| ¤ }
*description.modify {addstart('temp_2' not"")|'temp_2'\n}
*
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*url_index{url|https://programtv.onet.pl/stacje}
*index_site_channel.scrub {multi|<ul class="singleChannel letter_#">|title="|"|</div>}
*index_site_id.scrub {multi|<ul class="singleChannel letter_#">|<a href="|"|</div>}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
** @auto_xml_channel_end