Changeset 1061 for trunk/grabbers/sbsweb

Show
Ignore:
Timestamp:
06/05/08 21:08:51 (5 years ago)
Author:
paul
Message:

regions 90 and 98 change and new regions 266,267,268
remove Prime (Regional Victoria),Prime (Albury) and Prime Canberra/Sth Coast
add TEN HD to region 74 darwin
other cleanups

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grabbers/sbsweb

    r1059 r1061  
    1111# 
    1212 
    13 my $version = '1.0'; 
     13my $version = '1.01'; 
    1414 
    1515use strict; 
     
    466466    # Not totally sure about these regions... is regional NSW 'Sydney' 
    467467    # or 'Regional'? 
    468     if (grep ($_ == $opt->{region}, qw( 63 66 67 69 71 73 106 184 259 261 262 263 264))) 
    469     { 
    470         $loc = 'SBS Television'; 
    471     } 
    472     elsif (grep ($_ == $opt->{region}, qw( 90 93 94 95 98 ))) 
    473     { 
    474         $loc = 'SBS Melbourne'; 
    475     } 
    476     elsif (grep ($_ == $opt->{region}, qw( 75 78 79 114 253 254 255 256 257 258 ))) 
    477     { 
    478         $loc = 'SBS Queensland'; 
    479     } 
    480     elsif (grep ($_ == $opt->{region}, qw( 81 82 83 85 86 107 ))) 
    481     { 
    482         $loc = 'SBS SA'; 
    483     } 
    484     elsif (grep ($_ == $opt->{region}, qw( 101 102 ))) 
    485     { 
    486         $loc = 'SBS WA'; 
    487     } 
    488     else 
    489     { 
    490         $loc = 'Regional'; 
    491     } 
     468    my $state = Shepherd::Common::which_state($opt->{region}); 
     469    my $loc = "Regional"; 
     470    $loc = "SBS Television"     if ($state eq "NSW"); 
     471    $loc = "SBS Melbourne"      if ($state eq "VIC"); 
     472    $loc = "SBS Queensland"     if ($state eq "QLD"); 
     473    $loc = "SBS SA"             if ($state eq "SA"); 
     474    $loc = "SBS WA"             if ($state eq "WA"); 
     475    #$loc = ""             if ($state eq "TAS"); 
     476    #$loc = ""             if ($state eq "NT"); 
     477    #$loc = ""             if ($state eq "ACT"); 
    492478 
    493479    &log("Location: $loc") if ($debug);