Minor improvements to the processing panel
- It is now possible to actually see what's processing, due to a bug fix where __getitem__ was called on the db model. - Removed DEPRECATED message from the docstring, it wasn't true.
This commit is contained in:
@@ -19,13 +19,22 @@ import logging
|
||||
|
||||
from mediagoblin import mg_globals as mgg
|
||||
from mediagoblin.processing import \
|
||||
create_pub_filepath, FilenameBuilder
|
||||
create_pub_filepath, FilenameBuilder, BaseProcessingFail
|
||||
from mediagoblin.tools.translate import lazy_pass_to_ugettext as _
|
||||
|
||||
from . import transcoders
|
||||
|
||||
_log = logging.getLogger(__name__)
|
||||
_log.setLevel(logging.DEBUG)
|
||||
|
||||
|
||||
class VideoTranscodingFail(BaseProcessingFail):
|
||||
'''
|
||||
Error raised if video transcoding fails
|
||||
'''
|
||||
general_message = _(u'Video transcoding failed')
|
||||
|
||||
|
||||
def sniff_handler(media_file, **kw):
|
||||
transcoder = transcoders.VideoTranscoder()
|
||||
data = transcoder.discover(media_file.name)
|
||||
|
||||
Reference in New Issue
Block a user