From 72346c59fb50effd036c4813dd9e236484979031 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 15 Oct 2019 22:36:14 -0700 Subject: [PATCH] mp4 audio --- photoapp/types.py | 1 + photoapp/utils.py | 1 + 2 files changed, 2 insertions(+) diff --git a/photoapp/types.py b/photoapp/types.py index 389f4e1..236de0c 100644 --- a/photoapp/types.py +++ b/photoapp/types.py @@ -25,6 +25,7 @@ known_mimes = {"image/png", "image/gif", "application/octet-stream-xmp", "image/x-canon-cr2", + "audio/mp4", "video/mp4", "video/quicktime"} diff --git a/photoapp/utils.py b/photoapp/utils.py index fa4dc5a..900eade 100644 --- a/photoapp/utils.py +++ b/photoapp/utils.py @@ -34,6 +34,7 @@ def mime2ext(mime): "image/gif": "gif", "application/octet-stream-xmp": "xmp", "image/x-canon-cr2": "cr2", + "audio/mp4": "mp4", "video/mp4": "mp4", "video/quicktime": "mov"}[mime]