added a _run_reprocessing function which handles the hook calls
authorRodney Ewing <ewing.rj@gmail.com>
Thu, 1 Aug 2013 20:47:44 +0000 (13:47 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Fri, 16 Aug 2013 22:30:13 +0000 (15:30 -0700)
mediagoblin/gmg_commands/reprocess.py

index f458cd1dd7fb31c1bf5a697f41c90977564202ff..50434bd272752246291a43d8d0a374745366537d 100644 (file)
@@ -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)