#490 tv_grab_uk_guardian

0.5.66
closed-fixed
nobody
5
2014-08-04
2014-08-02
No

Ubuntu with xmltv 0.5.65

tv_grab_uk_guardian --debug

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

Discussion

  • James A R Brown

    James A R Brown - 2014-08-02

    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.

     
  • James A R Brown

    James A R Brown - 2014-08-02

    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?

     
  • Geoff

    Geoff - 2014-08-04

    Hi,
    Thanks for the reports and the patch.
    Fixed in v1.11 (in CVS).

     
  • Geoff

    Geoff - 2014-08-04
    • labels: --> tv_grab_uk_guardian
    • status: open --> closed-fixed
    • Group: none --> 0.5.66
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks