mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Media: Refactor video content type constants #4770
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -886,7 +886,7 @@ func TestFile_ContentType(t *testing.T) {
|
||||
t.Run("Video", func(t *testing.T) {
|
||||
avc := FileFixtures.Get("Video.mp4")
|
||||
assert.Equal(t, true, avc.FileVideo)
|
||||
assert.Equal(t, header.ContentTypeMp4Avc, avc.ContentType())
|
||||
assert.Equal(t, header.ContentTypeMp4AvcHigh, avc.ContentType())
|
||||
hevc := FileFixtures.Get("Photo21.mp4")
|
||||
assert.Equal(t, true, hevc.FileVideo)
|
||||
assert.Equal(t, header.ContentTypeMp4Hevc, hevc.ContentType())
|
||||
|
||||
Reference in New Issue
Block a user