**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: teleman.pl * @MinSWversion: V2.1 * @Revision 18 - [19/01/2020] Mr Groch * - Fixed country info seperated list in description * - Refined rating * - Refined star rating * - Changed max days to 13 * - Changed to https and removed www (less redirection, faster grabbing) * @Revision 17 - [30/08/2018] Mr Groch * - Fixed country tag when no production date in source * - Fixed showicon url * - Refined description for series * - Refined title - no grabing, use index_title for incremental update matching * - Added rating * - Added star rating (from filmweb or imdb to choose) * - Added channel logo * - Episode in title by default - uncomment those lines to disable: * *index_title.modify {remove|'index_subtitle'} * *index_title.modify {remove(type=regex)|\d+\:\(\d+\)} * *index_title.modify {remove(type=regex)|\d+\s\(\d+\)} * *index_title.modify {remove(type=regex)|\s\(\d+\)} * - 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 16 - [21/09/2017] Netuddki * - Fixes different titles * - Fixed some episode related bugs * @Revision 15 - [04/05/2017] Netuddki * - Added country * - Added Subtitle * - Refined Episode and Title * @Revision 14 - [02/05/2017] Netuddki * - Refined Title (no more suspicious titles) * - Refined Category * - Added option for Episode system xmltv_ns * - Fixed showicon * @Revision 13 - [06/01/2017] Netuddki * - fixed title.scrub * - fixed episodes * @Revision 12 - [16/02/2016] Blackbear199 * - new .channels.xml generation * - url_index change,index_showsplit fix * @Revision 11 - [20/03/2015] Willy De Wilde * - new .channels.xml generation * @Revision 10 - [13/02/2013] Francis De Paemeleere * - site changes * @Revision 9 - [20/01/2013] Willy De Wilde * - site changes * @Revision 8 - [20/12/2012] Willy De Wilde * - site changes * @Revision 7 - [24/11/2012] Willy De Wilde, Piotr Oleszczyk, Jan van Straaten * - site changes * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ * site {url=teleman.pl|timezone=Europe/Warsaw|maxdays=13|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 * *https://teleman.pl/program-tv/stacje/TVP-1?date=2016-02-17 url_index {url|https://teleman.pl/program-tv/stacje/|channel|?date=|urldate|} urldate.format {datestring|yyyy-MM-dd} * index_showsplit.scrub {multi|class="stationItems"|id="prog||} * index_start.scrub {single|||<|<} index_title.scrub {regex||^.*]*>(.*?)<||} index_title.modify {remove|Premiera:} * * index_category.scrub {regex||

(.*?)

||} index_category.modify {remove(type=regex)|,.*?\d{4}} index_category.modify {cleanup(style=name)} * index_subtitle.modify {addstart('index_category' ~ "mecz:")|'index_category'} index_subtitle.modify {substring(type=regex)|'index_title' "\d+\:(.*?)\(\d+\)"} *index_title.modify {remove|'index_subtitle'} *index_title.modify {remove(type=regex)|\d+\:\(\d+\)} index_category.modify {remove|'index_subtitle'} index_category.modify {addstart('index_subtitle' ~ "mecz:")|Sport} *index_title.modify {remove(type=regex)|\d+\s\(\d+\)} *index_title.modify {remove(type=regex)|\s\(\d+\)} * index_urlshow {url|https://teleman.pl|
|}
index_urlchannellogo.modify {addstart('index_urlchannellogo' not(.*?)||} *title.modify {cleanup(tags="<"">")} title.modify {set|'index_title'} temp_1.modify {substring(type=regex)|'title' "\s\d+\s\(\d+\)\|\d+\:(?:.*?)\(\d+\)\|\:(?:.*?)\(\d+\)\|\s\(\d+\)"} temp_1.modify {remove(type=regex)|\d+\:(.*?)\(\d+\)\|\:(.*?)\(\d+\)} temp_2.scrub {regex||

(.*?)\:?.*

||} temp_2.modify {addstart("")|'temp_1'} episode.modify {set(pattern=" 'S1' ('E1')""odc. 'E1'/'Et1'""'S1':('E1')""sezon 'S1' odc. 'E1'"":('E1')""('E1')")|'temp_2'} titleoriginal.scrub {regex||

\((.*?)\)

||} * productiondate.scrub {regex||
.*?(\d{4})||} actor.scrub {multi|>Występują:|">||} * actor name only alternative director.scrub {multi|Reżyseria:|">||} description.scrub {single|

Opis

||
|} temp_3.scrub {single|

W tym odcinku

|||} description.modify {addend('temp_3' not"")|\n¤ W tym odcinku: 'temp_3'} showicon.scrub {regex||
.*?|||
} * description.modify {cleanup(tags="<"">")} titleoriginal.modify {remove|Oglądaj w telewizji} actor.modify {remove|'director'} * rating.scrub {regex||.*?||} rating.modify {replace(~ "bo")|'rating'|0} rating.modify {substring(type=regex)|'rating' "\d+\"} rating.modify {addend('rating' not"")|+} * starrating.scrub {regex||(.*?)||} *starrating.scrub {regex||(.*?)||} starrating.modify {cleanup(tags="<"">")} * * show info in description header *temp_4.modify {addstart('starrating' not"")|##'starrating'} *temp_4.modify {addstart('rating' not"")|##'rating'} *temp_4.modify {addstart('productiondate' not"")|##'productiondate'} *temp_4.modify {addstart(separator="/" 'country' not"")|##'country'} *temp_4.modify {replace()|##| ¤ } *description.modify {addstart('temp_4' not"")|'temp_4'\n} * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** * @auto_xml_channel_start *index_site_id.scrub {multi|

Program TV wg stacji

||} *index_site_channel.modify {cleanup(removeduplicates)} *index_site_channel.scrub {multi|||} *index_site_id.modify {cleanup(removeduplicates)} * @auto_xml_channel_end