tv_grab_uk_rt complains after Radio Times change channels.dat format
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/
This is because http://
couple of lines added at the start that don't match the expected format.
$ wget -qO- http://
> 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/
but a better fix is probably warranted.
my $num_good_
# Fix by Ralph Corderoy.
if ($rt_channels[1] =~ /^In accessing this XML feed,/) {
shift @rt_channels;
shift @rt_channels;
}
foreach (@rt_channels) {
chomp;
my ($rt_id, $rt_name) = ($1, $2);
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/ FindRightPackag e . I have classified this bug as a bug in xmltv. /wiki.ubuntu. com/ReportingBu gs.
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:/