From de45c0be60e453e69263f5b32ab2ce2661dc74ca Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 15 Jul 2024 14:24:53 +0000 Subject: [feature] more filetype support! (#3107) * add more supported file types to our media processor that ffmpeg supports, update supported mime type lists * add code comments to the supported mime types slice * don't check for zero value string, just parse * remove some unneeded consts which make the code a bit harder to read * fix test expected instance media mime types, use compact ffprobe json, simple media processing by type * final tweaks to media processing code * don't use safe divide where we don't need to --- 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 a099d2b95..24e0ddd1e 100644 --- a/internal/media/manager_test.go +++ b/internal/media/manager_test.go @@ -421,7 +421,7 @@ func (suite *ManagerTestSuite) TestSlothVineProcess() { suite.Equal(81120, attachment.FileMeta.Original.Size) suite.EqualValues(float32(1.4083333), attachment.FileMeta.Original.Aspect) suite.EqualValues(float32(6.641), *attachment.FileMeta.Original.Duration) - suite.EqualValues(float32(29.00003), *attachment.FileMeta.Original.Framerate) + suite.EqualValues(float32(29), *attachment.FileMeta.Original.Framerate) suite.EqualValues(0x5be18, *attachment.FileMeta.Original.Bitrate) suite.EqualValues(gtsmodel.Small{ Width: 338, Height: 240, Size: 81120, Aspect: 1.4083333333333334, -- cgit v1.2.3