tv_grab_uk_rt complains after Radio Times change channels.dat format

Bug #326539 reported by Ralph Corderoy
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xmltv (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu 8.04, xmltv-util 0.5.51-2ubuntu2. I've been a happy user of
Freeguide, and thereby tv_grab_uk_rt(1) for ages. Today, the latter
couldn't download data from the Radio Times site. The complaint was
something similar to

    Bad channel entry seen in RT channels.dat: at line 490 in /usr/bin/tv_grab_uk_rt.

This is because http://xmltv.radiotimes.com/xmltv/channels.dat has had a
couple of lines added at the start that don't match the expected format.

    $ wget -qO- http://xmltv.radiotimes.com/xmltv/channels.dat |
    > head -4 |
    > cat -A
    ^I$
    In accessing this XML feed, you agree that you will only access its contents for your own personal and non-commercial use and not for any commercial or other purposes, including advertising or selling any goods or services, including any third-party software applications available to the general public.$
    22|National Geographic Wild$
    24|ITV1 Anglia$
    $

I've hacked my /usr/bin/tv_grab_uk_rt to skip these if they're present,
but a better fix is probably warranted.

    my $num_good_rt_channels;
    # Fix by Ralph Corderoy.
    if ($rt_channels[1] =~ /^In accessing this XML feed,/) {
        shift @rt_channels;
        shift @rt_channels;
    }
    foreach (@rt_channels) {
        chomp;
        /^(\d+)\|(.+)/ or die "Bad channel entry seen in RT channels.dat: $_";
        my ($rt_id, $rt_name) = ($1, $2);

Revision history for this message
Jaguar_fr (toolinux-ubuntu) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in xmltv.
For future reference you might be interested to know that a lot of applications have bug reporting functionality built in to them. This can be accessed via the Report a Problem option in the Help menu for the application with which you are having an issue. You can learn more about this feature at https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Mario Limonciello (superm1) wrote :

This should be fixed with 0.5.56-1 that came in from debian recently. Can you check it?

Changed in xmltv (Ubuntu):
status: New → Incomplete
Revision history for this message
Dave Walker (davewalker) wrote :

I can confirm tv_grab_uk_rt works in Karmic, so this issue seems to be resolved. If this is not the case, please re-open this bug.

Changed in xmltv (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.