Changeset 542

Show
Ignore:
Timestamp:
02/21/07 19:52:53 (6 years ago)
Author:
lincoln
Message:

ensure paytv channels dont contain special characters

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • applications/shepherd

    r540 r542  
    22 
    33my $progname = 'shepherd'; 
    4 my $version = '0.4.58'; 
     4my $version = '0.4.59'; 
    55 
    66# tv_grab_au 
     
    14621462        foreach (@paytv_channellist) { 
    14631463            my $default = lc($_);       # make a default id by lower-casing 
    1464             $default =~ s/[ \t()\[\]\+\.]//g; # remove special chars 
    1465             $default =~ s/&/and/g;  # & to and 
    1466             $default =~ s|[/,].*||;     # and deleting after / or , 
    14671464            $default = $oldopt_channels->{$_} || $default . ".paytv.au"; 
    14681465                                        # and tack on ".paytv.au".  But use 
     
    16421639    while ($page =~ /<option value="\/channel\/.*?>(.*?)<\/option>/sg) 
    16431640    { 
    1644         push @channellist,$1; 
     1641        my $ch = $1; 
     1642        $ch =~ s/[ \t()\[\]\+\.\-]//g;  # remove special chars 
     1643        $ch =~ s/&amp;/and/g;           # &amp; to and 
     1644        $ch =~ s|[/,].*||;              # and deleting after / or , 
     1645 
     1646        push @channellist,$ch; 
    16451647    } 
    16461648 
  • status

    r540 r542  
    1 application     shepherd            0.4.58 
     1application     shepherd            0.4.59 
    22grabber         yahoo7widget        1.80 
    33grabber         rex                 3.4.2