Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/MP3Plug.pm

    r9962 r10218  
    6666
    6767sub new {
    68     my ($class) = @_;
    69     my $self = new UnknownPlug ($class, @_);
    70     $self->{'plugin_type'} = "MP3Plug";
    71     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    72     my $option_list = $self->{'option_list'};
    73     push( @{$option_list}, $options );
    74 
    75     if (!parsargv::parse(\@_,
    76              q^assoc_images^, \$self->{'assoc_images'},
    77              q^applet_metadata^, \$self->{'applet_metadata'},
    78              q^metadata_fields/.*/Title,Artist,Genre^, \$self->{'metadata_fields'},
    79              "allow_extra_options")) {
    80     print STDERR "\nIncorrect options passed to MP3Plug, check your collect.cfg configuration file\n";
    81     $self->print_txt_usage("");  # Use default resource bundle
    82         die "\n";
    83     }
     68    my ($class) = shift (@_);
     69    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     70    push(@$pluginlist, $class);
     71
     72    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     73    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     74
     75    my $self = (defined $hashArgOptLists)? new UnknownPlug($pluginlist,$inputargs,$hashArgOptLists): new UnknownPlug($pluginlist,$inputargs);
    8476
    8577    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.