Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2023-07-06 15:16:34 +02:00
17 changed files with 214 additions and 33 deletions

View File

@@ -19,10 +19,7 @@ module Paperclip
def make
metadata = VideoMetadataExtractor.new(@file.path)
unless metadata.valid?
Paperclip.log("Unsupported file #{@file.path}")
return File.open(@file.path)
end
raise Paperclip::Error, "Error while transcoding #{@file.path}: unsupported file" unless metadata.valid?
update_attachment_type(metadata)
update_options_from_metadata(metadata)