mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 02:43:17 -06:00
[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
This commit is contained in:
parent
d2820a1470
commit
8f288f1689
16 changed files with 85 additions and 1378 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue