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:
parent
754c4b1a0d
commit
f7e1bfea7a
@ -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__)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user