54 lines
2.6 KiB
INI
Executable File
54 lines
2.6 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: tvbnetworkvision.com
|
|
* @MinSWversion: V1.1.1/53
|
|
* @Revision 2 - [19/08/2014] highkick05/Jan van Straaten
|
|
* - new channel creation, changed showsplit and added showdetails
|
|
* @Revision 1 - [07/08/2014] Willy De Wilde
|
|
* - added description
|
|
* @Revision 0 - [09/11/2013] Francis De Paemeleere
|
|
* - creation
|
|
* @Remarks:
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
*
|
|
site {url=tvbnetworkvision.com|timezone=Asia/Hong_Kong|maxdays=21|cultureinfo=en|charset=UTF-8|titlematchfactor=90}
|
|
*
|
|
url_index {url(debug)|http://www.tvbnetworkvision.com/en/epg/|channel|?date=|urldate|}
|
|
urldate.format {datestring|yyyy-MM-dd}
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
*
|
|
index_showsplit.scrub {regex()||(<div class=\"epg_timeline_section.+?</div>)||}
|
|
*index_showsplit.modify {addstart(debug)|}
|
|
scope.range {(indexshowdetails)|end}
|
|
index_start.scrub {single|<span class="time">||</span>}
|
|
index_title.scrub {single|<span class="title">||</span>}
|
|
index_title.modify {cleanup(tags="<"">")}
|
|
index_description.scrub {single|<p class="detail_intro">||</p>}
|
|
*
|
|
index_temp_1.scrub {single()|<div class="epg_detail_img">|<img src="/image/|/|</div>} * show_id
|
|
index_urlshow.modify {addstart('index_temp_1' not "")|http://www.tvbnetworkvision.com/ajax/getProgramme?programme_id='index_temp_1'&lang=en}
|
|
*http://www.tvbnetworkvision.com/ajax/getProgramme?programme_id=931&lang=en
|
|
end_scope
|
|
title.scrub {regex()||\"name\"\:\"(.+?)\",\"||}
|
|
description.scrub {regex()||\"description\"\:\"(.+?)\",\"||}
|
|
description.modify {substring(type=element)|0 1} * there can be more from other episodes
|
|
actor.scrub {regex()||\"actor_caption\"\:\"(.*?)\",\"||}
|
|
actor.modify {replace|,|\|}
|
|
rating.scrub {regex()||\"parental_rating\"\:\"(.+?)\",\"||}
|
|
|
|
* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
* ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
*
|
|
** @auto_xml_channel_start
|
|
*url_index{url|http://www.tvbnetworkvision.com/en/events}
|
|
*index_site_id.scrub {multi|href="epg/ = [|[|]|];}
|
|
*scope.range {(channellist)|end}
|
|
*url_index {url|http://www.tvbnetworkvision.com/en/events}
|
|
*index_site_channel.scrub {multi|<li><a href="/en/epg/||">|</li>}
|
|
*index_site_id.scrub {multi|<li><a href="/en/epg/||">|</li>}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*end_scope
|
|
** @auto_xml_channel_end
|