From 7c1f6a6aeea47c27a56e3f39e0a6cf33d9dd2486 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Thu, 1 Aug 2013 13:47:44 -0700 Subject: [PATCH] added a _run_reprocessing function which handles the hook calls --- mediagoblin/gmg_commands/reprocess.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.25.1