Changeset 510
- Timestamp:
- 02/11/07 18:26:10 (6 years ago)
- Files:
-
- 2 modified
-
grabbers/oztivo (modified) (4 diffs)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
grabbers/oztivo
r501 r510 3 3 # OzTivo grabber 4 4 5 my $version = '0.1 4';5 my $version = '0.15'; 6 6 7 7 # Requires configuration! … … 28 28 # so the rest of shepherd knows this. 29 29 # 0.14 : patch from Paul to address TEN/10 channels 30 # 0.15 : should grab Channel/Access 31s properly now 30 31 31 32 use strict; … … 108 109 109 110 my $shortchannels; 110 while (my ($name, $chanid) = each %$channels) { 111 while (my ($name, $chanid) = each %$channels) 112 { 113 # Ignore differences between rural stations like 114 # Seven (Rockhampton) and Seven (Cairns) -- this is not a great 115 # solution and should be fixed. 111 116 $name =~ s/ *\(.*?\)//g; 112 117 $shortchannels->{$name} = $chanid; 113 if ($name =~ /TEN/i) {114 $shortchannels->{10} = $chanid;115 }116 118 } 117 119 … … 265 267 266 268 $station = "SBS NEWS" if ($station eq "SBS-NEWS"); 267 268 foreach (@clist) 269 $station =~ s/10/TEN/g; 270 271 my $num = $1 if ($station =~ /(\d{2,})/); 272 foreach my $ch (@clist) 269 273 { 270 return $shortchannels->{$_} if ($station =~ /$_/i); 274 if ($station =~ /$ch/i 275 or 276 ($num and $ch =~ /$num/)) 277 { 278 return $shortchannels->{$ch}; 279 } 271 280 } 272 281 -
status
r509 r510 5 5 grabber abc2_website 2.07 6 6 grabber sbsnews_website 0.06 7 grabber oztivo 0.1 47 grabber oztivo 0.15 8 8 grabber jrobbo 0.06 9 9 grabber ninemsn 0.09
