diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-02 11:40:41 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-16 15:30:14 -0700 |
commit | 9a2c66ca9ef763fa68dc09a483c02fe2ee02d78f (patch) | |
tree | fde0cac99182ba200d2274978dd425d6e4eb33b7 /mediagoblin/processing/task.py | |
parent | 273c79513d82b03b99035dcfa47e839c61322483 (diff) | |
download | mediagoblin-9a2c66ca9ef763fa68dc09a483c02fe2ee02d78f.tar.lz mediagoblin-9a2c66ca9ef763fa68dc09a483c02fe2ee02d78f.tar.xz mediagoblin-9a2c66ca9ef763fa68dc09a483c02fe2ee02d78f.zip |
added image reprocessing
Diffstat (limited to 'mediagoblin/processing/task.py')
-rw-r--r-- | mediagoblin/processing/task.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mediagoblin/processing/task.py b/mediagoblin/processing/task.py index 9af192ed..c0dfb9b4 100644 --- a/mediagoblin/processing/task.py +++ b/mediagoblin/processing/task.py @@ -68,13 +68,15 @@ class ProcessMedia(task.Task): """ Pass this entry off for processing. """ - def run(self, media_id, feed_url): + def run(self, media_id, feed_url, reprocess_info=None): """ Pass the media entry off to the appropriate processing function (for now just process_image...) :param feed_url: The feed URL that the PuSH server needs to be updated for. + :param reprocess: A dict containing all of the necessary reprocessing + info for the media_type. """ entry = MediaEntry.query.get(media_id) @@ -89,7 +91,7 @@ class ProcessMedia(task.Task): with mgg.workbench_manager.create() as workbench: proc_state.set_workbench(workbench) # run the processing code - entry.media_manager.processor(proc_state) + entry.media_manager.processor(proc_state, reprocess_info) # We set the state to processed and save the entry here so there's # no need to save at the end of the processing stage, probably ;) |