Changeset 501
- Timestamp:
- 02/07/07 13:07:10 (6 years ago)
- Files:
-
- 2 modified
-
grabbers/oztivo (modified) (5 diffs)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
grabbers/oztivo
r479 r501 3 3 # OzTivo grabber 4 4 5 my $version = '0.1 3';5 my $version = '0.14'; 6 6 7 7 # Requires configuration! … … 27 27 # 0.13 : all oztivo programming is in GMT. add +0000 to its timezone 28 28 # so the rest of shepherd knows this. 29 # 0.14 : patch from Paul to address TEN/10 channels 29 30 30 31 use strict; … … 47 48 my $raw_input; 48 49 my $raw_output; 50 my $d; 49 51 50 52 print "$nicename Grabber v$version\n"; … … 105 107 die "\nError in channels file!\nDetails:\n$@" if ($@); 106 108 109 my $shortchannels; 110 while (my ($name, $chanid) = each %$channels) { 111 $name =~ s/ *\(.*?\)//g; 112 $shortchannels->{$name} = $chanid; 113 if ($name =~ /TEN/i) { 114 $shortchannels->{10} = $chanid; 115 } 116 } 117 107 118 # Create a list of channel names from longest to shortest 108 @clist = sort { length $b <=> length $a } keys %$ channels;119 @clist = sort { length $b <=> length $a } keys %$shortchannels; 109 120 print "Channels: @clist.\n"; 110 121 … … 257 268 foreach (@clist) 258 269 { 259 return $channels->{$_} if ($station =~ /$_/i); 260 } 261 print "Warning: station \"$station\" unknown.\n"; 270 return $shortchannels->{$_} if ($station =~ /$_/i); 271 } 272 273 if (!defined $d->{ignored_channels}->{$station}) { 274 $d->{ignored_channels}->{$station} = 1; 275 print "Warning: station \"$station\" unknown.\n"; 276 } 262 277 return $station; 263 278 } -
status
r497 r501 5 5 grabber abc2_website 2.07 6 6 grabber sbsnews_website 0.04 7 grabber oztivo 0.1 3-r17 grabber oztivo 0.14 8 8 grabber jrobbo 0.06 9 9 grabber ninemsn 0.08
