From 545b5828b512f97a1782e99a2f2d825f48cbbd60 Mon Sep 17 00:00:00 2001 From: Shyam Sunder Date: Tue, 30 Mar 2021 09:52:49 -0400 Subject: [PATCH] server/func/mime: support ftypM4V file signature --- server/szurubooru/func/mime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/func/mime.py b/server/szurubooru/func/mime.py index 5f6279b4..bd553fc1 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"