From: vijeth-aradhya Date: Tue, 30 May 2017 19:51:34 +0000 (+0530) Subject: media_types/video/util.py: Add accepted resolutions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f7e1bfea7a5d53dc900c43ce84674d17d1c7d0e6;p=mediagoblin.git 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. --- 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__)