Handle cr2 files through the raw_image media type
This commit sponsored by Jim Campbell. Hey, I know that guy! Thanks Jim! :)
This commit is contained in:
parent
1b22d51a5d
commit
b29b4e175f
@ -29,7 +29,7 @@ from mediagoblin.processing import (
|
|||||||
_log = logging.getLogger(__name__)
|
_log = logging.getLogger(__name__)
|
||||||
|
|
||||||
MEDIA_TYPE = 'mediagoblin.media_types.raw_image'
|
MEDIA_TYPE = 'mediagoblin.media_types.raw_image'
|
||||||
ACCEPTED_EXTENSIONS = ['nef',]
|
ACCEPTED_EXTENSIONS = ['nef', 'cr2']
|
||||||
|
|
||||||
|
|
||||||
# The entire function have to be copied
|
# The entire function have to be copied
|
||||||
|
@ -44,7 +44,7 @@ class VideoTranscodingFail(BaseProcessingFail):
|
|||||||
general_message = _(u'Video transcoding failed')
|
general_message = _(u'Video transcoding failed')
|
||||||
|
|
||||||
|
|
||||||
EXCLUDED_EXTS = ["nef"]
|
EXCLUDED_EXTS = ["nef", "cr2"]
|
||||||
|
|
||||||
def sniff_handler(media_file, filename):
|
def sniff_handler(media_file, filename):
|
||||||
name, ext = os.path.splitext(filename)
|
name, ext = os.path.splitext(filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user