diff options
Diffstat (limited to 'mediagoblin/processing')
-rw-r--r-- | mediagoblin/processing/__init__.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mediagoblin/processing/__init__.py b/mediagoblin/processing/__init__.py index 29345227..a9d5442b 100644 --- a/mediagoblin/processing/__init__.py +++ b/mediagoblin/processing/__init__.py @@ -41,7 +41,10 @@ class ProgressCallback(object): def __call__(self, progress): if progress: - self.entry.transcoding_progress = progress + if 100 - (self.entry.transcoding_progress + progress) < 0.01: + self.entry.transcoding_progress = 100 + else: + self.entry.transcoding_progress += progress self.entry.save() @@ -257,6 +260,12 @@ class ProcessingManager(object): return processor + def workflow(self, entry, feed_url, reprocess_action, reprocess_info=None): + """ + Returns the Celery command needed to proceed with media processing + """ + return None + def request_from_args(args, which_args): """ |