Changeset 180

Show
Ignore:
Timestamp:
11/05/06 20:46:55 (7 years ago)
Author:
max
Message:

Compliance with XMLTV options --description and --capabilities.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • shepherd

    r179 r180  
    146146# --------------------------------------------------------------------------- 
    147147 
    148 $| = 1; 
    149  
    150 print ucfirst($progname) . " v$version\n\n"; 
    151  
    152148# Any options Shepherd doesn't understand, we'll pass to the grabber(s) 
    153149Getopt::Long::Configure(qw/pass_through/); 
    154150 
    155151&get_initial_command_line_options; 
     152 
     153&capabilities if ($opt->{capabilities}); 
     154&description if ($opt->{description}); 
     155 
     156$| = 1;  
     157print ucfirst($progname) . " v$version\n\n"; 
    156158 
    157159&help if ($opt->{help}); 
     
    19551957              'clearpreftitle'  => \$opt->{clearpreftitlesource}, 
    19561958              'dontcallgrabbers' => \$opt->{dontcallgrabbers}, 
     1959               
     1960              # http://xmltv.org/wiki/xmltvcapabilities.html 
     1961              'capabilities'    => \$opt->{capabilities}, 
     1962              'description'     => \$opt->{description}, 
     1963              'quiet'           => \$opt->{quiet}, 
     1964 
    19571965              'debug'           => \$debug); 
    19581966} 
     
    23152323} 
    23162324 
     2325sub capabilities 
     2326{ 
     2327    print "baseline\nmanualconfig\n"; 
     2328    exit 0; 
     2329} 
     2330 
     2331sub description 
     2332{ 
     2333    print "Australia\n"; 
     2334    exit 0; 
     2335} 
     2336 
    23172337sub help 
    23182338{ 
     
    23392359 
    23402360    --check               Check status of all grabbers and postprocessors 
     2361 
     2362    --capabilities        Report capabilities to XMLTV 
    23412363 
    23422364    --nolog               Don't write a logfile