From d191f24d031fba7371539251d63da4f3dc789364 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 19 Feb 2022 13:51:25 +0100 Subject: [PATCH] .ogg can be video too --- pandora/archive/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 3f47ca8b..5c847144 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -181,6 +181,8 @@ class File(models.Model): for type in ox.movie.EXTENSIONS: if data['extension'] in ox.movie.EXTENSIONS[type]: data['type'] = type + if data['extension'] == 'ogg' and self.info.get('video'): + data['type'] = 'video' if data['type'] == 'unknown': if self.info.get('video'): data['type'] = 'video'