diff options
author | 2024-07-21 13:42:51 +0100 | |
---|---|---|
committer | 2024-07-21 14:42:51 +0200 | |
commit | c635080a0bfc7efd8519adfa527b012115cb0208 (patch) | |
tree | e2754d5084ea07b3aa51aa57fa21945d3e28da8e /internal/api | |
parent | [feature/frontend] Respect `prefers-reduced-motion` for avatars, headers, and... (diff) | |
download | gotosocial-c635080a0bfc7efd8519adfa527b012115cb0208.tar.xz |
[feature] add flac support (#3121)
* add flac support to the ffprobe format/stream -> filetype parser
* also add audio/flac for flac (not just x-flac)
* update tests
---------
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/api')
-rw-r--r-- | internal/api/client/instance/instancepatch_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/api/client/instance/instancepatch_test.go b/internal/api/client/instance/instancepatch_test.go index e68508fc2..095e2e543 100644 --- a/internal/api/client/instance/instancepatch_test.go +++ b/internal/api/client/instance/instancepatch_test.go @@ -109,6 +109,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch1() { "audio/mp2", "audio/mp3", "video/x-msvideo", + "audio/flac", + "audio/x-flac", "image/png", "image/apng", "audio/ogg", @@ -243,6 +245,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch2() { "audio/mp2", "audio/mp3", "video/x-msvideo", + "audio/flac", + "audio/x-flac", "image/png", "image/apng", "audio/ogg", @@ -377,6 +381,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch3() { "audio/mp2", "audio/mp3", "video/x-msvideo", + "audio/flac", + "audio/x-flac", "image/png", "image/apng", "audio/ogg", @@ -562,6 +568,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch6() { "audio/mp2", "audio/mp3", "video/x-msvideo", + "audio/flac", + "audio/x-flac", "image/png", "image/apng", "audio/ogg", @@ -718,6 +726,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch8() { "audio/mp2", "audio/mp3", "video/x-msvideo", + "audio/flac", + "audio/x-flac", "image/png", "image/apng", "audio/ogg", @@ -893,6 +903,8 @@ func (suite *InstancePatchTestSuite) TestInstancePatch9() { "audio/mp2", "audio/mp3", "video/x-msvideo", + "audio/flac", + "audio/x-flac", "image/png", "image/apng", "audio/ogg", |