summaryrefslogtreecommitdiff
path: root/rapid/filemodify.py
diff options
context:
space:
mode:
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")