mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
Metadata: Improve media type detection in pkg/fs/mime.go #3168
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
d797a1cedb
commit
a1242a47fe
1 changed files with 4 additions and 1 deletions
|
|
@ -53,6 +53,9 @@ func MimeType(filename string) (mimeType string) {
|
|||
// Apple QuickTime Container
|
||||
case VideoMOV:
|
||||
return MimeTypeMOV
|
||||
// MPEG-4 AVC Video
|
||||
case VideoAVC:
|
||||
return MimeTypeMP4
|
||||
// Adobe Digital Negative
|
||||
case ImageDNG:
|
||||
return MimeTypeDNG
|
||||
|
|
@ -86,7 +89,7 @@ func MimeType(filename string) (mimeType string) {
|
|||
if mimeType == MimeTypeUnknown {
|
||||
switch fileType {
|
||||
// MP4 Multimedia Container
|
||||
case VideoMP4:
|
||||
case VideoMP4, VideoHEVC, VideoHEV1:
|
||||
return MimeTypeMP4
|
||||
// AV1 Image File
|
||||
case ImageAVIF:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue