Changeset 252
- Timestamp:
- 08/31/06 00:12:46 (2 years ago)
- Files:
-
- plagger/trunk/lib/Plagger/Plugin/Filter/FFmpeg.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plagger/trunk/lib/Plagger/Plugin/Filter/FFmpeg.pm
r251 r252 37 37 } 38 38 39 $file = $self->safe_filename($file); 39 40 40 41 my $ff = FFmpeg::Command->new($self->conf->{command}); … … 65 66 $e->enclosure->filename("$file.$ext"); 66 67 $e->enclosure->type( Plagger::Util::mime_type_of($ext) ); 68 } 69 70 sub safe_filename { 71 my($self, $path) = @_; 72 $path =~ s![^\w\s]+!_!g; 73 $path =~ s!\s+!_!g; 74 $path; 67 75 } 68 76
