Show
Ignore:
Timestamp:
10/09/07 03:27:17 (14 months ago)
Author:
otsune
Message:

lang/perl/plagger/lib/Plagger/Plugin/Filter/FLVInfo.pm: fix log method parameter

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/plagger/lib/Plagger/Plugin/Filter/FLVInfo.pm

    r431 r435  
    2222    my $enclosure = $entry->enclosure; 
    2323    if (!defined $enclosure) { 
    24         $context->log(error => q{Can't find an enclosure.}); 
     24        $context->log( error => q{Can't find an enclosure.} ); 
    2525        return; 
    2626    } 
     
    2828    eval { $enclosure->local_path }; 
    2929    if($@){ 
    30         $context->log(error => q{Can't get local file.} ); 
     30        $context->log( error => q{Can't get local file.} ); 
    3131        return; 
    3232    } 
     
    3434    my $local_path = $enclosure->local_path; 
    3535    if ($local_path !~ m/\.flv$/xmsg) { 
    36         $context->log(warn => qq{Can't get info from $local_path.}); 
     36        $context->log( warn => qq{Can't get info from $local_path.} ); 
    3737        return; 
    3838    } 
    3939 
    40     $context->log("Extracting video information from $local_path"); 
     40    $context->log( info => "Extracting video information from $local_path" ); 
    4141    my $reader = FLV::Info->new(); 
    4242    $reader->parse($enclosure->local_path); 
     
    5151        height => $height, 
    5252        width  => $width, 
    53         aspect => ($width/$height > 1.5) ? '16:9' : '4:3' , 
     53        aspect => ( $width/$height > 1.5 ) ? '16:9' : '4:3', 
    5454    ); 
    5555