You are here

DaVinci Learning - grab problems

2 posts / 0 new
Last post
doglover
Offline
Joined: 11 years
Last seen: 3 years
DaVinci Learning - grab problems

I am trying the make SiteIni for DaVinci Learning - English schedule.

Website: http://www.davinci-learning.com/schedule

I have attached the Siteini which I arrived at.  It works on Webgrab++  version 1.1.1/53.17

However on Version 2.0.5 I get all kinds of errors.  In the siteIni there a bunch of marked out statements which I tried to solve the problem.  They all show an error:

 

[Critical] Exception.Message: De objectverwijzing is niet op een exemplaar van een object ingesteld.
[Critical] Exception.StackTrace:    bij WGconsole.Scrub.Times.GetDate(Scrub s, ChannelToUpdate chtu)
   bij WGconsole.Scrub.Times.GetTimes(Int32 n, String[] indexshows, Scrub s, ChannelToUpdate chtu, UpdatedChannel uch)
   bij WGconsole.Program.UpdateChannel(String strIndex, ChannelToUpdate Chan, XmlTarget xTarget)
   bij WGconsole.Program.ConsoleApplication(String[] args)

 

In the config file I use:

<channel update="i" site="DaVinciLearning.en" site_id="dummy" xmltv_id="DaVinciLearning.en">Da Vinci Learning</channel>

 

The problem with the website is that no date is mentioned.  The schedule start with Yesterday.  I tried setting the index_date to yesterday.  This works in the old version.  But not in the most recent version of Webgrab++

I also tried to exclude the first block of the showsplit.  This does not work either.

 

What am I doing wrong.  Pls. Help

Willy

 

 

 

 

doglover
Offline
Joined: 11 years
Last seen: 3 years

Thanks that works.

But I think I know where the problem is.

In another SiteIni I am working on, I need the statement:

 

index_variable_element.modify {calculate (format=date,"dddd dd MMM, yyyy") |'urldate'}

This resulted in the value:  Wednesday 31 May, 2017)

When you remove the ) in the result the the correct value is obtained;

 

This becomes then:

index_variable_element.modify {calculate (format=date,"dddd dd MMM, yyyy") |'urldate'}
index_variable_element.modify {remove|)}

index_showsplit.scrub {multi (debug) |<h2>'index_variable_element'</h2>|div class='ls14||<!--END Content Wrapper-->}

Hopefull this gives you a clue where the error is located.

Willy

 

Log in or register to post comments

Brought to you by Jan van Straaten

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