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.
This commit is contained in:
vijeth-aradhya 2017-05-31 01:21:34 +05:30
parent 754c4b1a0d
commit f7e1bfea7a

View File

@ -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__)