mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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>
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user