Changeset 227
- Timestamp:
- 08/22/06 12:54:31 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plagger/trunk/lib/Plagger/Plugin/CustomFeed/AmazonWebService.pm
r226 r227 27 27 my $feed = Plagger::Feed->new; 28 28 $feed->type('AmazonWebService'); 29 $feed->title('Amazon Web Service'); 29 30 my $title = $self->conf->{title} || 'Amazon Web Service'; 31 $feed->title($title); 30 32 31 33 my $attr; … … 50 52 my $date = Plagger::Date->strptime('%Y/%m/%d', $item->ReleaseDate); 51 53 $date = Plagger::Date->strptime('%Y/%m', $item->ReleaseDate) unless $date; 52 next unless $date; 54 unless($date){ 55 $context->log(error => 'Date format is invalid: ' . $item->ReleaseDate); 56 next; 57 } 53 58 $entry->date($date); 54 59 … … 135 140 =back 136 141 142 =head1 SEE ALSO 143 144 This plugin in originally made by id:wata_d . 145 See http://d.hatena.ne.jp/wata_d/20060821 . 146 147 L<Plagger>, L<Net::Amazon> 148 137 149 =head1 AUTHOR 138 150 139 151 Gosuke Miyashita 140 152 141 =head1 SEE ALSO142 143 L<Plagger>, L<Net::Amazon>144 145 153 =cut plagger/trunk/lib/Plagger/Plugin/Filter/FFmpeg.pm
r222 r227 6 6 use File::Spec; 7 7 use FFmpeg::Command; 8 use Encode;9 8 10 9 sub register { … … 32 31 33 32 my $ff = FFmpeg::Command->new($self->conf->{command}); 34 $ff->input_options({ file => $e->enclosure->local_path});33 $ff->input_options({ file => encode($encoding, $e->enclosure->local_path) }); 35 34 36 35 my $output_file = File::Spec->catfile($self->conf->{dir}, "$file.$ext"); 37 36 $ff->output_options({ 38 file => $output_file,37 file => encode($encoding, $output_file), 39 38 device => $self->conf->{device} || 'ipod', 40 39 title => encode($encoding, $e->title),
