**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: cosmote.gr * @MinSWversion: 1.1.1/54 * @Revision 6 - [07/07/2018] iap3tos * - Modified structure to adapt new changes at CosmoteTV site * @Revision 5 - [03/08/2017] iap3tos (solution by Blackbear199) * - Fixed stop time error * - Fixed commentator scrub * @Revision 4 - [04/06/2017] Netuddki * - New index url (matched new pages) * - Rewritten Episode scrubbing * @Revision 3 - [20/03/2017] Netuddki * - Refined Episode scrubbing * - Added option for xmltv_ns OR onscreen episode system * - Removed most of the codes of Ankont, because not needed * @Revision 2 - [19/08/2016] ankont * @Revision 1 - [13/08/2016] ankont * @Revision 0 - [06/06/2016] Blackbear199 * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=cosmote.gr|timezone=Europe/Athens|maxdays=8|cultureinfo=el-GR|charset=UTF-8|titlematchfactor=90} site {ratingsystem=GR} * site {episodesystem=onscreen} *Enable for Onscreen Episode System *site {episodesystem=xmltv_ns} *Enable for xmltv_ns Episode System * url_index{url|https://www.cosmote.gr/cosmotetv/residential/program/epg/programchannel?p_p_id=channelprogram_WAR_OTETVportlet&p_p_lifecycle=0&_channelprogram_WAR_OTETVportlet_platform=IPTV&_channelprogram_WAR_OTETVportlet_date=|urldate|&_channelprogram_WAR_OTETVportlet_articleTitleUrl=|channel|} url_index.headers {customheader=Accept-Encoding=gzip,deflate} urldate.format {datestring|dd-MM-yyyy} * index_showsplit.scrub {regex||(.*?)||} *index_showsplit.modify {cleanup(removeduplicates=equal,100)} index_urlchannellogo {url|https://www.cosmote.gr||} * index_start.scrub {single||||} index_stop.scrub {single||||} index_title.scrub {single||||} * index_episode.modify {substring(type=regex pattern="Κ'S1' Ε'E1'""Κ'S1'""Ε'E1'")|'index_title' "Κ\d+ Ε\d+\|Κ\d+\|Ε\d+"} index_title.modify {remove|'index_episode'} index_title.modify {remove|;} index_title.modify {remove(type=regex)|\(Ε\)} index_title.modify {remove(type=regex)|\(Z\)} index_title.modify {remove(type=regex)|\(M\)} index_title.modify {cleanup (tags="<"">")} index_titleoriginal.modify {substring(type=regex)|'index_title' "\s\((.+?)\)"} index_title.modify {remove('index_titleoriginal' not "")| ('index_titleoriginal')} * * ---Old Index Kept for backup--- index_urlshow {url|https://www.cosmote.gr||} index_urlshow {url|https://www.cosmote.gr|} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages * title.scrub {single|
|

|

|
} *on subpage title.modify {remove(type=regex)|Κ\d+ Ε\d+\|Κ\d+\|Ε\d+} title.modify {remove|;} title.modify {remove(type=regex)|\(Ε\)} title.modify {remove(type=regex)|\(Z\)} title.modify {remove(type=regex)|\(M\)} title.modify {cleanup (tags="<"">")} titleoriginal.modify {substring(type=regex)|'title' "\s\((.+?)\)"} title.modify {remove('titleoriginal' not "")| ('titleoriginal')} * category.scrub {single|Κατηγορία:|">||

} showicon.scrub {url|https://www.cosmote.gr|
|src="||?version|">} showicon.modify {clear("/portal/OTETV-portlet/images/noimage.png")} * productiondate.scrub{single|
|Έτος παραγωγής: |.|
} productiondate.scrub{single|
|(|)|
} productiondate.scrub {multi(include="παραγωγής")|

|. ||

} * subtitle.scrub {single|
|Επεισόδιο: |. |
} subtitle.scrub {single(type=regex)||

(?:\s*)\'(.*?)\'\. (?:.*?)

||} commentator.scrub {regex||
.+?Περιγραφή:(.+?)(?:\.\s*\|

)||} commentator.modify {replace|, |\|} country.scrub {single|
|Παραγωγή: |. |
} description.scrub {single|
||
} description.modify {remove|Επεισόδιο: 'subtitle'. } description.modify {remove|\''subtitle'\'. } description.modify {remove|Περιγραφή: } description.modify {remove|'commentator'} description.modify {remove|Παραγωγή: 'country'. } description.modify {remove|(Μεταγλ.)} description.modify {remove(type=regex)|(\(\d+\'\))} *director.scrub {multi(separator=",")|} director.scrub {multi(separator=",")|
} description.modify {addstart| } description.modify {remove| ('productiondate').} description.modify {remove|Έτος παραγωγής: 'productiondate'.} description.modify {cleanup} rating.scrub {single|} rating.modify {replace|/G.|all} rating.modify {replace|/PG.|pga} rating.modify {replace|/PG-13.|pgc} rating.modify {replace|/R.|pg15} rating.modify {replace|/NC-17.|x} ratingicon.scrub {url|https://www.cosmote.gr||src="|"/>|} * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index{url|https://www.cosmote.gr/portal/residential/program?p_p_id=dayprogram_WAR_OTETVportlet&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-4&p_p_col_count=1&_dayprogram_WAR_OTETVportlet_platform=IPTV&_dayprogram_WAR_OTETVportlet_start=0&_dayprogram_WAR_OTETVportlet_feedType=EPG&_dayprogram_WAR_OTETVportlet_date='urldate'&_dayprogram_WAR_OTETVportlet_end=15} *index_site_id.scrub {multi|">Κανάλια|portlet_articleTitleUrl%3D|%26_channelprogram|} *index_site_channel.scrub {multi|">Κανάλια|">||} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} ** @auto_xml_channel_end