From 8f288f1689376a8cf6ab7f431e862eb870765342 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:58:15 +0000 Subject: [bugfix] determine mime-type to use during ffprobe evaluation stage, don't bother checking against file extension (#3506) * determine mime-type to use during ffprobe evaluation stage, don't bother rechecking by file extension * set mjpeg content-type * fix up tests expecting differing default values --- internal/media/manager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/media/manager_test.go') diff --git a/internal/media/manager_test.go b/internal/media/manager_test.go index c281b1000..e175369f5 100644 --- a/internal/media/manager_test.go +++ b/internal/media/manager_test.go @@ -664,7 +664,7 @@ func (suite *ManagerTestSuite) TestOpusProcess() { Duration: util.Ptr(float32(122.10006)), Bitrate: util.Ptr(uint64(116426)), }, attachment.FileMeta.Original) - suite.Equal("audio/ogg", attachment.File.ContentType) + suite.Equal("audio/opus", attachment.File.ContentType) suite.Equal(1776956, attachment.File.FileSize) suite.Empty(attachment.Blurhash) -- cgit v1.2.3