**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: vip.hr * @MinSWversion: V2.1.3 * @Revision 0 - [13/09/2017] Blackbear199 * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=vip.hr|timezone=Europe/Zagreb|maxdays=7|cultureinfo=hr-HR|charset=UTF-8|titlematchfactor=90|ratingsystem=HR} site {episodesystem=onscreen|allowlastdayoverflow} * url_index{url|http://raspored.vip.hr/bnetepg/call/method::get_entries::channels::##channel##::date::|urldate|} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * urldate.format {datestring|yyyy-MM-dd} * global_temp_1.modify {substring(scope=urlindex type=regex)|'config_site_id' "^(.*?)##"} url_index.modify {replace(scope=urlindex)|##channel##|'global_temp_1'} * index_showsplit.scrub {regex||{"id":(.*?)}||} scope.range{(splitindex)|end} index_showsplit.modify {cleanup(style=unidecode)} index_showsplit.modify {cleanup(style=jsondecode)} index_temp_1.modify {substring(type=regex)|'index_showsplit' "\"start\":\"([^"]+)\""} index_temp_1.modify {cleanup(removeduplicates=equal,100 link="index_showsplit")} *index_showsplit.modify {(debug)} *for debug end_scope * index_urlchannellogo.modify {substring(type=regex)|'config_site_id' "##(.*)$"} index_urlchannellogo.modify {addstart|http://raspored.vip.hr/var/ezflow_site/storage/images/televizija/} * index_start.scrub {single|"start":"||Z",|Z",} index_stop.scrub {single|"end":"||Z",|Z",} index_title.scrub {single|"title":"||",|",} index_titleoriginal.scrub {single|"sub-title":"||",|",} index_description.scrub {single|"desc":"||",|",} index_director.scrub {regex||"directors":\[(?:.*?)(?:"([^"]+)"(?:.*?))*\]||} index_actor.scrub {regex||"actors":\[(?:.*?)(?:"([^"]+)"(?:.*?))*\]||} index_writer.scrub {regex||"writers":\[(?:.*?)(?:"([^"]+)"(?:.*?))*\]||} index_showicon.scrub {single|"image":"||"|"} * scope.range{(indexshowdetails)|end} index_title.modify {addstart("")|'index_titleoriginal'} index_title.modify {remove| (T)} index_title.modify {remove| (R)} index_title.modify {remove| (P)} index_rating.modify {substring(type=regex)|'index_title' ",[^\(]*\((\d{1,2})\)"} index_title.modify {remove(type=regex)|,\s\w*\s*\w*\s*(?:\(\d+\)\s*)?} index_rating.modify {substring("" type=regex)|'index_title' "\s\((\d{1,2})\)$"} index_title.modify {remove(type=regex)|\s\(\d{1,2}\)$} index_episode.modify {substring(pattern="('S1')('E1'/'Et1')""('E1'/'Et1')""'S1'. 'E1'"". 'E1'" type=regex)|'index_title' "((?:\(\d+\))?\s*\(\d+\/\d+\)\|(?:[MDCLXVI]+)?\.\s\d+)" index_title.modify {remove|'index_episode'} index_episode.modify {cleanup(style=roman2arabicnumeral)} index_episode.modify {set(not "")|'index_episode'\|'index_episode'(system=xmltv_ns)} index_title.modify {cleanup} index_titleoriginal.modify {clear('index_title')} index_productiondate.modify {substring(type=regex)|'index_description' "^\([^\)]+,\s(\d{4})\)\s"} index_description.modify {remove('index_productiondate' not "")|, 'index_productiondate'} index_country.modify {substring(type=regex)|'index_description' "^\([^\)]*,\s([^\)]*)\)\s"} index_description.modify {remove('index_country' not "")|, 'index_country'} index_country.modify {cleanup(style=name)} index_category.modify {substring(type=regex)|'index_description' "^\(([^\)]+)\)\s"} index_description.modify {remove('index_category' not "")|('index_category') } index_category.modify {cleanup(style=name)} index_category.modify {replace| |\|} index_description.modify {remove(type=regex)|^\([^\)]*\)} index_description.modify {addstart("")|Nema informačia} index_showicon.modify {addstart(not "")|http://epg.bnet.hr/images/} end_scope * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index{url|http://raspored.vip.hr/bnetepg/call/method::get_init2} *index_site_id.scrub {regex||\{"id":(\d+,"title":"[^"]*","image":"[^"]*)"||} *index_site_channel.scrub {regex||\{"id":\d+,"title":"([^"]*)",||} *index_site_channel.modify {cleanup(style=unidecode)} *index_site_id.modify {cleanup(style=jsondecode)} *index_site_id.modify {replace(type=regex)|^\d+(,"title":"[^"]*","image":"var/ezflow_site/storage/images/televizija/)|##} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} *end_scope ** @auto_xml_channel_end