lib/sufia/jobs/transcode_audio_job.rb in sufia-1.2.0 vs lib/sufia/jobs/transcode_audio_job.rb in sufia-1.3.0

- old
+ new

@@ -26,13 +26,12 @@ def encode_mp3 opts = "" if generic_file.mime_type == 'audio/mpeg' # Don't re-encode, just copy - generic_file.add_file_datastream(generic_file.content.read, :dsid=>'mp3', :mimeType=>'audio/mp3') - #generic_file.content.rewind + generic_file.add_file_datastream(generic_file.content.read, :dsid=>'mp3', :mimeType=>'audio/mpeg') else - encode_datastream('mp3', 'audio/mp3', opts) + encode_datastream('mp3', 'audio/mpeg', opts) end end end