diff options
author | vijeth-aradhya <vijthaaa@gmail.com> | 2017-05-31 01:21:34 +0530 |
---|---|---|
committer | vijeth-aradhya <vijthaaa@gmail.com> | 2017-05-31 01:21:34 +0530 |
commit | f7e1bfea7a5d53dc900c43ce84674d17d1c7d0e6 (patch) | |
tree | 5b2eff6d5ad31d1e092fae644ede0e8a41d161b6 | |
parent | 754c4b1a0dc28f3e7f0ef41a9b15aa4f336984be (diff) | |
download | mediagoblin-f7e1bfea7a5d53dc900c43ce84674d17d1c7d0e6.tar.lz mediagoblin-f7e1bfea7a5d53dc900c43ce84674d17d1c7d0e6.tar.xz mediagoblin-f7e1bfea7a5d53dc900c43ce84674d17d1c7d0e6.zip |
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.
-rw-r--r-- | mediagoblin/media_types/video/util.py | 9 |
1 files changed, 9 insertions, 0 deletions
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__) |