Changeset 510

Show
Ignore:
Timestamp:
02/11/07 18:26:10 (6 years ago)
Author:
max
Message:

Channel 31 for oztivo grabber (#32)

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • grabbers/oztivo

    r501 r510  
    33# OzTivo grabber 
    44 
    5 my $version = '0.14'; 
     5my $version = '0.15'; 
    66 
    77# Requires configuration! 
     
    2828#         so the rest of shepherd knows this. 
    2929# 0.14  : patch from Paul to address TEN/10 channels 
     30# 0.15  : should grab Channel/Access 31s properly now 
    3031 
    3132use strict; 
     
    108109 
    109110my $shortchannels; 
    110 while (my ($name, $chanid) = each %$channels) { 
     111while (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. 
    111116  $name =~ s/ *\(.*?\)//g; 
    112117  $shortchannels->{$name} = $chanid; 
    113   if ($name =~ /TEN/i) { 
    114     $shortchannels->{10} = $chanid; 
    115   } 
    116118} 
    117119 
     
    265267 
    266268    $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) 
    269273    { 
    270         return $shortchannels->{$_} if ($station =~ /$_/i); 
     274        if ($station =~ /$ch/i 
     275                or 
     276            ($num and $ch =~ /$num/)) 
     277        { 
     278            return $shortchannels->{$ch}; 
     279        } 
    271280    } 
    272281 
  • status

    r509 r510  
    55grabber         abc2_website        2.07 
    66grabber         sbsnews_website     0.06 
    7 grabber         oztivo              0.14 
     7grabber         oztivo              0.15 
    88grabber         jrobbo              0.06 
    99grabber         ninemsn             0.09