**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: port.ro * @MinSWversion: V1.57 * @Revision 12 - [20/11/2016] Blackbear199 * - small fixes * @Revision 11 - [28/06/2016] Blackbear199 * - site changes * @Revision 10 - [24/02/2016] Blackbear199 * - maxdays=11.1, rewrite-identical format to port.hu * @Revision 9 - [04/09/2014] Jan van Straaten * - maxdays=11.1, added customheader, corrected error in presenter * @Revision 8 - [03/09/2014] Jan van Straaten * - removed firstday=now, changed maxdays=5.1 * @Revision 7 - [14/11/2013] Francis De Paemeleere * @Remarks: * adjusted version of port.rs * @header_end **------------------------------------------------------------------------------------------------ site {url=port.ro|timezone=Europe/Bucharest|maxdays=14|cultureinfo=ro-RO|charset=ISO-8859-2|titlematchfactor=90} site {episodesystem=onscreen} * url_index{url|http://port.ro/pls/w/tv_api.event_list?i_channel_id=|channel|&i_portdate=|urldate|} url_index.headers {customheader=Accept-Encoding=gzip,deflate} urldate.format {datestring|yyyy-MM-dd} * index_showsplit.scrub {regex||\{"id":\d{9},.*?"type":".*?"\}||} index_urlchannellogo {url(scope=datelogo)||"logo":"||"|"} * scope.range{(indexshowdetails)|end} index_start.scrub {regex||"start_datetime":"(.+?)[+-]\d{2}:\d{2}"||} index_stop.scrub {regex||"end_datetime":"(.+?)[+-]\d{2}:\d{2}"||} index_title.scrub {single|"title"|:"|",|",} index_description.scrub {single|"italics":"||"|"} * index_episode.scrub {regex(pattern="sezonul 'S1', episodul 'E1'""episodul 'E1'")||"short_description":".*?((sezonul\s\d+,\s)*episodul\s\d+)\)"||} * index_temp_1.scrub {single|"film_url":"http://port.ro/||/pls/fi/films|/pls/fi/films} index_temp_2.scrub {single|"film_url":"http://port.ro/|i_perf_id=|&i_topic_id|"} index_temp_3.scrub {single|"film_url":"http://port.ro/|utm_medium=|&utm_term=|"} index_temp_4.scrub {single|"film_url":"http://port.ro/|&utm_term=|&utm_campaign=|"} * index_urlshow {url||"film_url":"||&utm_source|&utm_source} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * index_title.modify {remove|\} index_description.modify {cleanup(tags="<"">")} end_scope * scope.range{(showdetails)|end} title.scrub {single|

|

|} subtitle.scrub {single|

||

|} titleoriginal.scrub {single|

(|)

|} * description.scrub {single|
|||
Distribuţia: |target="_top">||
} director.scrub {multi(max=2)|regizor: |target="_top">||
} writer.scrub {multi(max=2)|scenarist: |target="_top">||
} composer.scrub {multi(max=2)|compozitor: |target="_top">||
} producer.scrub {multi(max=2)|producător: |target="_top">||
} presenter.scrub {multi(max=2)|prezentator:|target="_top">||
} * rating.scrub {single||(|)} showicon.scrub {single||||")} description.modify {cleanup(tags="<"">")} description.modify {cleanup} * actor.modify {cleanup(tags="<"">")} actor.modify {cleanup} director.modify {cleanup} writer.modify {cleanup} composer.modify {cleanup} producer.modify {cleanup} presenter.modify {cleanup(tags="<"">")} end_scope ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index{url|http://port.ro/pls/w/tv_api.init?i_page_id=1} *index_site_id.scrub {multi|"channels":[|"id":|,|]} *index_site_channel.scrub {multi|"channels":[|"name":"|"|]} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} ** @auto_xml_channel_end