Video support is disabled by default, set enable_video to true to enable
This commit is contained in:
parent
0bce749b21
commit
8aeb673877
@ -50,6 +50,9 @@ allow_attachments = boolean(default=False)
|
|||||||
# Cookie stuff
|
# Cookie stuff
|
||||||
csrf_cookie_name = string(default='mediagoblin_csrftoken')
|
csrf_cookie_name = string(default='mediagoblin_csrftoken')
|
||||||
|
|
||||||
|
# Media types
|
||||||
|
enable_video = boolean(default=False)
|
||||||
|
|
||||||
[storage:publicstore]
|
[storage:publicstore]
|
||||||
storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
|
storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
|
||||||
base_dir = string(default="%(here)s/user_dev/media/public")
|
base_dir = string(default="%(here)s/user_dev/media/public")
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from mediagoblin import mg_globals
|
||||||
from mediagoblin.util import lazy_pass_to_ugettext as _
|
from mediagoblin.util import lazy_pass_to_ugettext as _
|
||||||
|
|
||||||
|
|
||||||
@ -29,8 +30,10 @@ class InvalidFileType(Exception):
|
|||||||
# This should be more dynamic in the future. Perhaps put it in the .ini?
|
# This should be more dynamic in the future. Perhaps put it in the .ini?
|
||||||
# -- Joar
|
# -- Joar
|
||||||
MEDIA_TYPES = [
|
MEDIA_TYPES = [
|
||||||
'mediagoblin.media_types.image',
|
'mediagoblin.media_types.image']
|
||||||
'mediagoblin.media_types.video']
|
|
||||||
|
if mg_globals.app_config['enable_video']:
|
||||||
|
MEDIA_TYPES.append('mediagoblin.media_types.video')
|
||||||
|
|
||||||
|
|
||||||
def get_media_types():
|
def get_media_types():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user