Changeset 435
- Timestamp:
- 10/09/07 03:27:17 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/plagger/lib/Plagger/Plugin/Filter/FLVInfo.pm
r431 r435 22 22 my $enclosure = $entry->enclosure; 23 23 if (!defined $enclosure) { 24 $context->log( error => q{Can't find an enclosure.});24 $context->log( error => q{Can't find an enclosure.} ); 25 25 return; 26 26 } … … 28 28 eval { $enclosure->local_path }; 29 29 if($@){ 30 $context->log( error => q{Can't get local file.} );30 $context->log( error => q{Can't get local file.} ); 31 31 return; 32 32 } … … 34 34 my $local_path = $enclosure->local_path; 35 35 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.} ); 37 37 return; 38 38 } 39 39 40 $context->log( "Extracting video information from $local_path");40 $context->log( info => "Extracting video information from $local_path" ); 41 41 my $reader = FLV::Info->new(); 42 42 $reader->parse($enclosure->local_path); … … 51 51 height => $height, 52 52 width => $width, 53 aspect => ( $width/$height > 1.5) ? '16:9' : '4:3',53 aspect => ( $width/$height > 1.5 ) ? '16:9' : '4:3', 54 54 ); 55 55
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)