projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fc8aaf
)
added a _run_reprocessing function which handles the hook calls
author
Rodney Ewing
<ewing.rj@gmail.com>
Thu, 1 Aug 2013 20:47:44 +0000
(13:47 -0700)
committer
Rodney Ewing
<ewing.rj@gmail.com>
Fri, 16 Aug 2013 22:30:13 +0000
(15:30 -0700)
mediagoblin/gmg_commands/reprocess.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/gmg_commands/reprocess.py
b/mediagoblin/gmg_commands/reprocess.py
index f458cd1dd7fb31c1bf5a697f41c90977564202ff..50434bd272752246291a43d8d0a374745366537d 100644
(file)
--- 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)