You are here

Adapting ini file to provider changes

1 post / 0 new
Joined: 7 years
Last seen: 2 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 :
* revision : 1 Site change
* Jan van Straaten,
site {|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}
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|'config_xmltv_id'&p=}
index_variable_element.modify {remove| }
index_urlshow {url|'index_variable_element'|<a class=|id='|'|href}
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|}
*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

Most of the structure of the page is the same.

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:


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: