summaryrefslogtreecommitdiff
path: root/rapid/filemodify.py
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2012-06-26 20:47:26 +0200
committerJulien Valroff <julien@kirya.net>2012-06-26 20:47:26 +0200
commit2a794565f77005a753930023e41c7b696eaed6ac (patch)
tree2b96b11bed593b42be28bf456f4ae79c88e45585 /rapid/filemodify.py
parentd6033c914c071aa57ac8ea4ccb03a55bd0506a3a (diff)
Imported Upstream version 0.4.5upstream/0.4.5
Diffstat (limited to 'rapid/filemodify.py')
-rw-r--r--rapid/filemodify.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/rapid/filemodify.py b/rapid/filemodify.py
index 8e5d8a3..98921ae 100644
--- a/rapid/filemodify.py
+++ b/rapid/filemodify.py
@@ -72,7 +72,11 @@ class FileModify(multiprocessing.Process):
while not copy_finished:
logger.debug("Finished %s. Getting next task.", download_count)
- rpd_file, download_count, temp_full_file_name, thumbnail_icon, thumbnail, copy_finished = self.results_pipe.recv()
+ data = self.results_pipe.recv()
+ if len(data) > 2:
+ rpd_file, download_count, temp_full_file_name, thumbnail_icon, thumbnail, copy_finished = data
+ else:
+ rpd_file, copy_finished = data
if rpd_file is None:
# this is a termination signal
logger.info("Terminating file modify via pipe")