From 91f5f5e791e5bc3680cac2b0103429713517f7d4 Mon Sep 17 00:00:00 2001 From: Boris Bobrov Date: Thu, 5 Jun 2014 15:42:12 +0400 Subject: Porting video to GStreamer 1.0 Porting includes: - thumbnailer - transcoder - metadata handling - new common discoverer for media - new tests with in-memory test video generating - handling regardless of audio availability in the file - Pythonic gst pipelines --- mediagoblin/processing/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mediagoblin/processing/__init__.py') diff --git a/mediagoblin/processing/__init__.py b/mediagoblin/processing/__init__.py index 5a88ddea..b7e36027 100644 --- a/mediagoblin/processing/__init__.py +++ b/mediagoblin/processing/__init__.py @@ -378,12 +378,11 @@ def store_public(entry, keyname, local_file, target_name=None, entry.media_files[keyname], target_filepath) if delete_if_exists: mgg.public_store.delete_file(entry.media_files[keyname]) - try: mgg.public_store.copy_local_to_storage(local_file, target_filepath) - except: + except Exception as e: + _log.error(u'Exception happened: {0}'.format(e)) raise PublicStoreFail(keyname=keyname) - # raise an error if the file failed to copy if not mgg.public_store.file_exists(target_filepath): raise PublicStoreFail(keyname=keyname) -- cgit v1.2.3 From 945a1c56677e3187bb0e3584d7e5a57e661f55ac Mon Sep 17 00:00:00 2001 From: Boris Bobrov Date: Mon, 4 Aug 2014 11:59:37 +0400 Subject: a tiny fix to function doc --- mediagoblin/processing/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mediagoblin/processing/__init__.py') diff --git a/mediagoblin/processing/__init__.py b/mediagoblin/processing/__init__.py index b7e36027..aa8f1447 100644 --- a/mediagoblin/processing/__init__.py +++ b/mediagoblin/processing/__init__.py @@ -309,8 +309,8 @@ def mark_entry_failed(entry_id, exc): store extra information that can be useful for users telling them why their media failed to process. - Args: - - entry_id: The id of the media entry + :param entry_id: The id of the media entry + :param exc: An instance of BaseProcessingFail """ # Was this a BaseProcessingFail? In other words, was this a -- cgit v1.2.3