mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
67 lines
3.7 KiB
INI
Executable file
67 lines
3.7 KiB
INI
Executable file
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* Site : Indigenous Community Television Australia
|
|
* revision : 20 July 2013
|
|
* Name date
|
|
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: rhef.com.au , Rural Health Channel, Indigenous Community Television Australia
|
|
* @MinSWversion: V1.1.1/51
|
|
* - needs half hour timezone
|
|
* @Revision 1 - [27/07/2013] Jan van Straaten
|
|
* - adds dummy shows on Saterday and Sunday morning
|
|
* @Revision 0 - [23/07/2013] Sean McManus, Jan van Straaten
|
|
* - created ini
|
|
* @Remarks:
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
*
|
|
site {url=rhef.com.au|timezone=UTC+10:00|maxdays=14|cultureinfo=en-AU|charset=utf-8|titlematchfactor=90}
|
|
site {ratingsystem=ACB}
|
|
url_index{url(debug)|http://www.rhef.com.au/wp-admin/admin-ajax.php}
|
|
**
|
|
url_index.headers {method=POST|contenttype=application/x-www-form-urlencoded}
|
|
url_index.headers {postdata=action=switch_guide_main&date='urldate'}
|
|
urldate.format{datenumber|UNIX|0}
|
|
*
|
|
index_showsplit.scrub {multi()|<h3 class="|||<script>} * split in afternoon and evening blocks
|
|
scope.range {(splitindex)|end}
|
|
* the following looks for empty afternoon and eveing blocks and adds a dummy shows if found empty
|
|
index_temp_1.modify {calculate(type=element format=F0)|'index_showsplit' #}
|
|
index_temp_6.modify {addstart|'index_showsplit'} * working copy of showsplit
|
|
index_showsplit.modify {clear}
|
|
* loop through the afternoon and evening blocks
|
|
loop {('index_temp_1' > "0" max=30)|end}
|
|
index_temp_1.modify {calculate(format=F0)|1 -}
|
|
index_temp_2.modify {substring(type=element)|'index_temp_6' 'index_temp_1' 1} * the morning/evening section
|
|
index_temp_2.modify {replace(not ~ "<span class=")|<ul id="afternoon">|<ul id="afternoon"><span class="time">1:30 PM</span><span class="ratings">(U 120 mins)</span><br style="clear: both;"><strong>No showing at this time</strong></ul>} * add dummy
|
|
index_temp_2.modify {replace(not ~ "<span class=")|<ul id="evening">|<ul id="evening"><span class="time">7:30 PM</span><span class="ratings">(U 120 mins)</span><br style="clear: both;"><strong>No showing at this time</strong></ul>} * add dummy
|
|
index_showsplit.modify {addstart|####'index_temp_2'}
|
|
end_loop
|
|
index_showsplit.modify {replace|####|\|} * make multi
|
|
index_showsplit.modify {replace|<span class="time">|\|} * split in showings
|
|
index_showsplit.modify {select|"<span class=\"ratings\">" ~} * select only the showings
|
|
end_scope
|
|
index_urlshow {url(include="http://www.rhef.com.au")||<a href="||">more|</a></li>}
|
|
*
|
|
index_start.scrub {single()|||</span>|</span>}
|
|
index_start.modify {replace| AM|am}
|
|
index_start.modify {replace| PM|pm}
|
|
index_duration.scrub {single|<span class="ratings">|(|mins)|</span>} * rating and duration in minutes
|
|
index_duration.modify {calculate(format=time)|'index_duration' 60 /} * converted into hh:mm
|
|
index_rating.scrub {single(separator=" " include=first)|<span class="ratings">|(|mins)|</span>}
|
|
index_title.scrub {single|<strong>||</strong>|</strong>}
|
|
*
|
|
title.scrub {single()|<div class="main">|<h2>|</h2>|<form class="}
|
|
description.scrub {multi|<div class="product_description">||</div>|</div>}
|
|
description.modify {cleanup(tags="<"">")}
|
|
*
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** @auto_xml_channel_start
|
|
** single fixed channel
|
|
*index_site_id.scrub {|}
|
|
*index_site_channel.modify {addstart|RHC}
|
|
*index_site_id.modify {addstart|rhc}
|
|
** @auto_xml_channel_end
|