Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PATCH] XMLTV 0.5.35 tv_grab_uk_rt channel choices
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
riksta
n00b
n00b


Joined: 16 Apr 2004
Posts: 73
Location: Manchester, UK

PostPosted: Sat Oct 02, 2004 1:46 am    Post subject: [PATCH] XMLTV 0.5.35 tv_grab_uk_rt channel choices Reply with quote

Hi, XMLTV was recently updated to 0.5.35, after the XMLTV guys liased with the people at RadioTime.com to make a more efficient way of ripping guide data.

Anyway it seems there is a mistake in the code where it finds a channel in the setup, but there is more than one option for that channel, eg BBC 1 Nothwest, BBC1 Northeast

Anyway, here is my patch to apply to /usr/bin/tv_grab_uk_rt

Code:

--- tv_grab_uk_rt.old   2004-10-02 02:39:43.267806440 +0000
+++ tv_grab_uk_rt       2004-10-02 02:38:53.492373456 +0000
@@ -246,11 +246,11 @@
                  if exists $dn_to_ch{$dn};
                $dn_to_ch{$dn} = $_;
            }
            my $none_option = 'None of the above are what I wanted';
            die 'silly channel name' if exists $dn_to_ch{$none_option};
-           my $r = ask('Which channel to add?',
+           my $r = ask_choice('Which channel to add?',
                        $poss[0]->{'display-name'}->[0]->[0],
                        (sort keys %dn_to_ch), $none_option);
            # treat EOF as same as none-option
            next if not defined $r;
            next if $r eq $none_option;


Save as tv_grab_uk_rt.patch


Patch file (as root) with
Code:

 patch -p0 /usr/bin/tv_grab_uk_rt < /path/to/tv_grab_uk_rt.patch


Enjoy

Rick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum