summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExtractArchive.py
diff options
context:
space:
mode:
authorGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-03-23 00:32:56 +0100
committerGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-03-23 00:32:56 +0100
commitd0ef13775925f15811d2a6744d29190c313b3820 (patch)
treed969b5417e929b555e8a24acc5ac59a4a9345507 /module/plugins/hooks/ExtractArchive.py
parent[UpdateManager] Fix https://github.com/pyload/pyload/issues/1274 (diff)
downloadpyload-d0ef13775925f15811d2a6744d29190c313b3820.tar.xz
[ExtractArchive] extract archive even if first part is not in package
Diffstat (limited to 'module/plugins/hooks/ExtractArchive.py')
-rw-r--r--module/plugins/hooks/ExtractArchive.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 0c163078c..d9af2dd49 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -106,7 +106,7 @@ class ArchiveQueue(object):
class ExtractArchive(Hook):
__name__ = "ExtractArchive"
__type__ = "hook"
- __version__ = "1.34"
+ __version__ = "1.35"
__config__ = [("activated" , "bool" , "Activated" , True ),
("fullpath" , "bool" , "Extract with full paths" , True ),
@@ -328,7 +328,9 @@ class ExtractArchive(Hook):
success = False
continue
- files_ids.remove((fname, fid, fout)) #: don't let other extractors spam log
+ # remove processed file and related multiparts from list
+ files_ids = [(fname, fid, fout) for fname, fid, fout in files_ids \
+ if fname not in archive.getDeleteFiles()]
self.logDebug("Extracted files: %s" % new_files)
self.setPermissions(new_files)