You are here

Adapting ini file to provider changes

1 post / 0 new
RCOO
Offline
Joined: 8 years
Last seen: 3 years
Adapting ini file to provider changes

So, I'm currently trying to get the guide for channels in a specific provider in Portugal.

The provider is NOS which replaces the previous one which was ZON.

-------------------

* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* Site : zon.pt
* revision : 1 Site change
* Jan van Straaten,
*
site {url=nos.pt|timezone=UTC+00:00|maxdays=7.1|cultureinfo=pt-PT|charset=UTF-8|titlematchfactor=90}
*site {ratingsystem=ES|episodesystem=onscreen|grabengine=|firstshow=0|firstday=0000000}
url_index{url|http://www.nos.pt/particulares/televisao/guia-tv/Pages/channel.aspx?chan...|channel}
urldate.format {datestring|d} * dummy, no date in url
*subpage.format {number||1|}
index_showsplit.scrub {multi|<div id="programs-container">|<li style='height:|</li>|<div class="clearfix"></div>}
index_variable_element.modify {remove|'index_variable_element'}
index_variable_element.modify {addstart|http://www.nos.pt/_layouts/EPGGetProgramDetails.aspx?c='config_xmltv_id'&p=}
index_variable_element.modify {remove| }
index_urlshow {url|'index_variable_element'|<a class=|id='|'|href}
*http://www.zon.pt/_layouts/EPGGetProgramDetails.aspx?c=RTP2&p=35996
*
index_start.scrub {single|<span class="duration">|| - |</span>}
index_stop.scrub {single|<span class="duration">| - |</span>|</a>}
index_title.scrub {single|<span class="program">||</span>|<br>} 
index_category.scrub {single|<a class='||' id|</a>}
*
* the following creates a channel list file:
*url_index {url|http://www.zon.pt/tv/guiaTV/Pages/GuiaTV.aspx}
*index_site_channel.scrub {multi|<li><span class="channel-number">|title='|'>|</a>}
*index_site_id.scrub{multi|<li><span class="channel-number">|channelSigla=|' title|</a>}
*
title.scrub {single|||_#|$}
*subtitle.scrub {single|}
description.scrub {single|$_||_#|$_} 
*
*extract episode from title
temp_1.modify {calculate(type=char format=F0)|'title' " T." @}
episode.modify {substring('temp_1' not "-1" type=char)|'title' 'temp_1'}
title.modify {remove|'episode'}
episode.modify {cleanup}
*extract subtitle from title
temp_1.modify {calculate(type=char format=F0)|'title' " - " @}
subtitle.modify {substring('temp_1' not "-1" type=char)|'title' 'temp_1'}
title.modify {remove|'subtitle'}
subtitle.modify {remove|-}

 

------

this is what I currently have. An example of an EPG is http://www.nos.pt/particulares/televisao/guia-tv/Pages/channel.aspx?channel=5

Most of the structure of the page is the same. http://cl.ly/0h3W131W191E

The duration is specified in the following format, being the '-' a delimeter for the start/end time. However, i'm getting the following error with the current code: http://cl.ly/2J1p2C0Y093v

 

Could anyone help me fix this? Thanks

 

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl