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:
Christopher Allan Webber 2014-09-06 10:56:27 -05:00
parent 1b22d51a5d
commit b29b4e175f
2 changed files with 2 additions and 2 deletions

View File

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

View File

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