diff options
| author | Shyam Sunder <sgsunder1@gmail.com> | 2021-03-30 09:52:49 -0400 |
|---|---|---|
| committer | Shyam Sunder <sgsunder1@gmail.com> | 2021-03-30 09:52:49 -0400 |
| commit | 545b5828b512f97a1782e99a2f2d825f48cbbd60 (patch) | |
| tree | 21f31c99bc811f5da2197c6de857f5f9635867ad /server | |
| parent | 7b54551b8e9dd8b9258ad1e0469a3a1264f29873 (diff) | |
server/func/mime: support ftypM4V file signature
Diffstat (limited to 'server')
| -rw-r--r-- | server/szurubooru/func/mime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/func/mime.py b/server/szurubooru/func/mime.py index 5f6279b..bd553fc 100644 --- a/server/szurubooru/func/mime.py +++ b/server/szurubooru/func/mime.py @@ -24,7 +24,7 @@ def get_mime_type(content: bytes) -> str: if content[0:4] == b"\x1A\x45\xDF\xA3": return "video/webm" - if content[4:12] in (b"ftypisom", b"ftypiso5", b"ftypmp42"): + if content[4:12] in (b"ftypisom", b"ftypiso5", b"ftypmp42", b"ftypM4V "): return "video/mp4" return "application/octet-stream" |