Changeset 9

Show
Ignore:
Timestamp:
10/14/06 02:37:51
Author:
yohei
Message:

Add sub_dir_name setting

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plagger/trunk/my-plugins/Filter-FetchEnclosure-Mplayer/Mplayer.pm

    r8 r9  
    3333        } 
    3434         
     35        my $dir_name = $self->conf->{sub_dir_name} || $args->{feed}->id_safe; 
    3536        my $feed_dir 
    36             = File::Spec->catfile($self->conf->{dir}, $args->{feed}->id_safe); 
     37            = File::Spec->catfile($self->conf->{dir}, $dir_name); 
    3738        unless (-e $feed_dir && -d _) { 
    3839            $context->log(info => "mkdir $feed_dir"); 
     
    7980            $enclosure->local_path($output_path); 
    8081            $context->log(info => "Dumping to $output_path is done [$length]"); 
    81         } else { 
     82        } 
     83        else { 
    8284            $context->log(warn => "Can not dump to $output_path"); 
    8385            $context->log(info => "Deleting $output_path"); 
     
    125127    config: 
    126128      dir: /path/to/download 
    127       option: -mplayer -option s  
    128       fetchfor: mp3 
     129      type: asf 
    129130 
    130131=head1 DESCRIPTION