diff options
| author | w1kl4s <w1kl4s@protonmail.com> | 2022-09-10 08:44:16 +0200 |
|---|---|---|
| committer | Neo <50623835+neobooru@users.noreply.github.com> | 2022-09-13 19:18:22 +0200 |
| commit | 8088ff3bbe101907c2cea3341bc4437285b3d12d (patch) | |
| tree | f19feae5df0ba49f99f4513d1dc7e0109e307fc0 /server | |
| parent | 6c3b50d287a8b8ba67d2bb4cf3cffe25bcd3b4e6 (diff) | |
support ftypiso6 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 3be43f7..ee10b9d 100644 --- a/server/szurubooru/func/mime.py +++ b/server/szurubooru/func/mime.py @@ -36,7 +36,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", b"ftypM4V "): + if content[4:12] in (b"ftypisom", b"ftypiso5", b"ftypiso6", b"ftypmp42", b"ftypM4V "): return "video/mp4" return "application/octet-stream" |