aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/reprocess.py
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-01 13:47:44 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-16 15:30:13 -0700
commit7c1f6a6aeea47c27a56e3f39e0a6cf33d9dd2486 (patch)
tree2333395d8d5a94112664471779dda12087f76a7d /mediagoblin/gmg_commands/reprocess.py
parent6fc8aaf65f483ab523cab74489dd3421314e2b7e (diff)
downloadmediagoblin-7c1f6a6aeea47c27a56e3f39e0a6cf33d9dd2486.tar.lz
mediagoblin-7c1f6a6aeea47c27a56e3f39e0a6cf33d9dd2486.tar.xz
mediagoblin-7c1f6a6aeea47c27a56e3f39e0a6cf33d9dd2486.zip
added a _run_reprocessing function which handles the hook calls
Diffstat (limited to 'mediagoblin/gmg_commands/reprocess.py')
-rw-r--r--mediagoblin/gmg_commands/reprocess.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mediagoblin/gmg_commands/reprocess.py b/mediagoblin/gmg_commands/reprocess.py
index f458cd1d..50434bd2 100644
--- a/mediagoblin/gmg_commands/reprocess.py
+++ b/mediagoblin/gmg_commands/reprocess.py
@@ -97,6 +97,10 @@ def _reprocess_all(args):
' all media_entries, unless you set --state'
' to "failed".'))
+ _run_reprocessing(args)
+
+
+def _run_reprocessing(args):
if args[0].available:
return hook_handle(('reprocess_action', args[0].type), args)
else:
@@ -113,3 +117,5 @@ def reprocess(args):
return _reprocess_all(args)
_set_media_type(args)
+
+ return _run_reprocessing(args)