Ubuntu with xmltv 0.5.65
Fetching http://tvlistings.theguardian.com/text-only/?tvgBroadcaster=UKSkyCable&tvgRegion=London&tvgFlagFilter=&tvgDayOffset=0f&c=5-usa from server.
TITLE= 5 USA
5 USA - channel number 174
FOUND= 5 USA - channel number 174
Fetching http://tvlistings.theguardian.co
......
Animal Planet - channel number 525
Fetching http://tvlistings.theguardian.com/text-only/?tvgBroadcaster=UKSkyCable&tvgRegion=London&tvgFlagFilter=&tvgDayOffset=0f&c=bbc-two-hd from cache without checking with server.
TITLE= PA||BBC Two HD
BBC Two HD - channel number 143
Can't call method "as_text" on an undefined value at /usr/local/bin/tv_grab_uk_guardian line 230.
1st Item In conf file always works
2nd Item onwards in conf file works if cached
nth Item but 2nd HTML grab causes this error
Ok line 230 is attempting to strip as example
More4 TV listings | TV and radio | The Guardian
To More4
But some titles have now
PA||BBC Two HD TV listings | TV and radio | The Guardian
Do not know what the PA|| is about, but it breaks the regex
My fix was to adjust the regex to
$channeltitle =~ m/^(PA||)?(.*)\sTV listings/ and $channeltitle = $2;
Although regex is not my thing and there maybe a better way, but for now seems to work.
Found another issue... if hit with a default Mythtv setup utilising the tv_grab_combiner
nice tv_grab_combiner --config-file '/home/jamesarbrown/.mythtv/FreeSat.xmltv' --output /tmp/mythOmMLzS --days 1 --offset 14
This will break
--offset 9 works which matches the 9 available days on the guardian web site
The script needs to be modified to ignore/tollerate a request for unavailable days?
Hi,
Thanks for the reports and the patch.
Fixed in v1.11 (in CVS).