diff options
| author | CorePoint <CorePoint@users.noreply.github.com> | 2020-02-07 12:10:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-07 12:10:38 +0100 |
| commit | 72e104b14570db158e2ee40ae7ebac473cf3bbbe (patch) | |
| tree | a6648ba76a933faa3297d946e66a4a6f2b9535db /server | |
| parent | af6eff9ff885eb647a52331c6db4c23e0ac4af4a (diff) | |
detect ftypiso5 as mp4 mime type
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 8f069a1..871a0a4 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'ftypmp42'): + if content[4:12] in (b'ftypisom', b'ftypiso5', b'ftypmp42'): return 'video/mp4' return 'application/octet-stream' |