66 lines
3.2 KiB
INI
Executable File
66 lines
3.2 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
||
* @header_start
|
||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||
* @Site: vodafone.co.nz
|
||
* @MinSWversion: V1.57
|
||
* @Revision 0 - [02/12/2016] Blackbear199
|
||
* - creation
|
||
* @Remarks:
|
||
* @header_end
|
||
**------------------------------------------------------------------------------------------------
|
||
site {url=vodafone.co.nz|timezone=Pacific/Auckland|maxdays=7|cultureinfo=en-NZ|charset=ISO-8859-1|titlematchfactor=90}
|
||
site {ratingsystem=NZ|episodesystem=onscreen|keepindexpage}
|
||
*
|
||
url_index{url|http://customerzone.vodafone.co.nz/residential/inhome/tv/tvguide/tvg-griddown-base.cfm}
|
||
*
|
||
url_index.headers {method=POST}
|
||
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
||
url_index.headers {accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8}
|
||
url_index.headers {contenttype=application/x-www-form-urlencoded}
|
||
url_index.headers {postdata=v=gd&d='urldate'&h='subpage'&f=12&c=all&user_chan_list='channel'&user_chan_list='channel'}
|
||
*
|
||
urldate.format {datestring|yyyy-MM-dd}
|
||
subpage.format {list|0|12}
|
||
*
|
||
index_showsplit.scrub {multi(includeblock="tvgtime")|<tr valign="top" bgcolor="#FFFFFF">||</tr>|</tr>}
|
||
index_showsplit.modify {replace|<br><br>|\|}
|
||
*
|
||
index_urlshow {url|http://customerzone.vodafone.co.nz/residential/inhome/tv/tvguide/|openBrWindow('||'|'}
|
||
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
||
*
|
||
*index_urlchannellogo {url| }
|
||
*
|
||
index_start.scrub {single|<span class="tvgtime">||</span>|</span>}
|
||
index_start.modify {replace|am| am}
|
||
index_start.modify {replace|pm| pm}
|
||
index_title.scrub {single|<a href="#" class="tvgprogram"|<b>|</b>|</a>}
|
||
index_rating.scrub {single|<span class="tvgclassification">(||)</span>|)</span>}
|
||
*
|
||
scope.range{(showdetails)|end}
|
||
title.scrub {single|<strong class="tvhdrpurple" style="font-size:16px;">|<br>|<span}
|
||
description.scrub {single|<strong class="tvhdrpurple" style="font-size:16px;">|</table>|<table|<tr><td>}
|
||
description.modify {cleanup(tags="<"">")}
|
||
actor.modify {substring(type=regex)|'description' "Starring:(.*)$"}
|
||
actor.modify {remove(type=regex)|\.(?:\s\d{4}\.)?$}
|
||
actor.modify {replace|, |\|}
|
||
description.modify {remove('actor' not "" type=regex)|Starring:\s.*$}
|
||
category.scrub {single|<strong>Genre: </strong></td>|<td class="tvbluesml">|</td>|</tr>}
|
||
episode.modify {substring(type=regex pattern="S'S1' Ep'E1'"))|'description' "S\d+ Ep\d+"}
|
||
*
|
||
description.modify {remove('episode' not "")|'episode'. }
|
||
description.modify {cleanup}
|
||
end_scope
|
||
*
|
||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||
**
|
||
** @auto_xml_channel_start
|
||
*url_index.headers {postdata=v=gd&d='urldate'&h=0&f=3&c=all&user_chan_list=TV1A}
|
||
*scope.range{(channellist)|end}
|
||
*index_site_id.scrub {multi|color:#7C7C7C; width:125px; ">||</select>|</select>}
|
||
*index_site_channel.modify {substring(type=regex)|'index_site_id' "option[^>]*>([^<]*)<\/option>"}
|
||
*index_site_id.modify {substring(type=regex)|"value=\"([^\"]*)\""}
|
||
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
||
*end_scope
|
||
** @auto_xml_channel_end
|