From f7e1bfea7a5d53dc900c43ce84674d17d1c7d0e6 Mon Sep 17 00:00:00 2001 From: vijeth-aradhya Date: Wed, 31 May 2017 01:21:34 +0530 Subject: [PATCH] media_types/video/util.py: Add accepted resolutions Add dict consisting of all the accepted resolutions with their dimensions. This should be eventually moved to config where the instance owner can modify it. --- mediagoblin/media_types/video/util.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mediagoblin/media_types/video/util.py b/mediagoblin/media_types/video/util.py index 8b65d839..1f5e907d 100644 --- a/mediagoblin/media_types/video/util.py +++ b/mediagoblin/media_types/video/util.py @@ -18,6 +18,15 @@ import logging from mediagoblin import mg_globals as mgg +ACCEPTED_RESOLUTIONS = { + '144p' : (256, 144), + '240p' : (352, 240), + '360p' : (480, 360), + '480p' : (858, 480), + '720p' : (1280, 720), + '1080p' : (1920, 1080), +} + _log = logging.getLogger(__name__) -- 2.25.1