Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/wav-mp3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def make
begin
parameters = []
parameters << @params
parameters << ":source"
parameters << ":dest"
parameters << File.expand_path(src.path)
parameters << File.expand_path(dst.path)
parameters = parameters.flatten.compact.join(" ").strip.squeeze(" ")
success = Paperclip.run("lame", parameters, :source => "#{File.expand_path(src.path)}",:dest => File.expand_path(dst.path))
rescue PaperclipCommandLineError => e
success = Paperclip.run("lame", parameters)
rescue Exception => e
raise PaperclipError, "There was an error converting #{@basename} to mp3"
end
dst
Expand Down