Changeset 394

Show
Ignore:
Timestamp:
12/29/06 18:25:51 (6 years ago)
Author:
max
Message:

Added undocumented option --grabwith to temporarily specify grabber order

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • applications/shepherd

    r392 r394  
    22 
    33my $progname = 'shepherd'; 
    4 my $version = '0.4.21'; 
     4my $version = '0.4.22'; 
    55 
    66# tv_grab_au 
     
    11621162                        randomize 
    11631163                        pending 
     1164                        grabwith=s 
    11641165                     )); 
    11651166  $debug = $opt->{debug}; 
     
    18671868    } 
    18681869 
     1870    if ($opt->{grabwith}) 
     1871    { 
     1872        my @a = split(/,/, $opt->{grabwith}); 
     1873        my $g; 
     1874        while ($g = shift @a) 
     1875        { 
     1876            $opt->{grabwith} = (@a ? join(',', @a) : undef); 
     1877            &log("\nObeying --grabwith option: selecting grabber \"$g\".\n"); 
     1878            if ($components->{$g} and $components->{$g}->{type} eq 'grabber') 
     1879            { 
     1880                return select_grabber($g, $gscore); 
     1881            } 
     1882            &log("Not a grabber: \"$g\".\n"); 
     1883        } 
     1884    } 
     1885 
    18691886    return undef unless ($total); 
    18701887 
  • status

    r393 r394  
    1 application     shepherd            0.4.21 
     1application     shepherd            0.4.22 
    22grabber         yahoo7widget        1.71 
    33grabber         rex                 3.3.8