Skip to content

Commit

Permalink
Merge pull request #6028 from avalonmediasystem/mo_api_update_fields
Browse files Browse the repository at this point in the history
Reenable setting derivative mimetype if provided
  • Loading branch information
masaball authored Sep 10, 2024
2 parents 0925315 + 9c533a3 commit d5230b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/derivative.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def self.from_output(output, managed = true)
derivative.managed = managed
derivative.track_id = output[:id]
derivative.duration = output[:duration].to_i
# FIXME: Implement this in ActiveEncode
# derivative.mime_type = output[:mime_type]
# FIXME: Implement this in ActiveEncode or determine mimetype here
derivative.mime_type = output[:mime_type]
derivative.quality = output[:label].sub(/quality-/, '')

derivative.audio_bitrate = output[:audio_bitrate]
Expand Down

0 comments on commit d5230b4

Please sign in to comment.