summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExtractArchive.py
diff options
context:
space:
mode:
authorGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-02-04 20:41:03 +0100
committerGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-02-04 20:42:51 +0100
commit0df373e5da9d33e4dea3e709521d4883ef7f9b45 (patch)
tree2b467a708eeea233f4756074ac086c893f0656e7 /module/plugins/hooks/ExtractArchive.py
parentAddressed some Extractor Issues (diff)
downloadpyload-0df373e5da9d33e4dea3e709521d4883ef7f9b45.tar.xz
[Unrar] Fix: Deleting All Files after Extraction
Diffstat (limited to 'module/plugins/hooks/ExtractArchive.py')
-rw-r--r--module/plugins/hooks/ExtractArchive.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index e1c05878c..e1d6dff59 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -276,16 +276,16 @@ class ExtractArchive(Hook):
for fname, fid in targets:
name = os.path.basename(fname)
- if not os.path.exists(fname):
- self.logDebug(name, "File not found")
- continue
-
pname = replace_patterns(fname, self.NAME_REPLACEMENTS)
if pname not in processed:
processed.append(pname) #: prevent extracting same file twice
else:
self.logDebug(name, "Skipped")
continue
+
+ if not os.path.exists(fname):
+ self.logDebug(name, "File not found")
+ continue
self.logInfo(name, _("Extract to: %s") % out)
try: