mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:52:24 -05: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:
parent
027a93facc
commit
c635080a0b
4 changed files with 21 additions and 0 deletions
|
|
@ -335,6 +335,8 @@ func (res *result) GetFileType() (gtsmodel.FileType, string) {
|
|||
}
|
||||
case "avi":
|
||||
return gtsmodel.FileTypeVideo, "avi"
|
||||
case "flac":
|
||||
return gtsmodel.FileTypeAudio, "flac"
|
||||
}
|
||||
return gtsmodel.FileTypeUnknown, res.format
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,6 +43,9 @@ var SupportedMIMETypes = []string{
|
|||
|
||||
"video/x-msvideo", // .avi
|
||||
|
||||
"audio/flac", // .flac
|
||||
"audio/x-flac", // .flac
|
||||
|
||||
// png types
|
||||
"image/png", // .png
|
||||
"image/apng", // .apng
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue