summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-25 22:03:25 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-25 22:03:25 +0100
commit5d7639c1a4430a1d27bca0ebd849feb266470f16 (patch)
treeb7ea8ad7056cc2395dc51839a196ee4472cab0d0
parentMerge pull request #1285 from immenz/dev_extract (diff)
parentfixed "permanent" issue (diff)
downloadpyload-5d7639c1a4430a1d27bca0ebd849feb266470f16.tar.xz
Merge pull request #1288 from Gutz-Pilz/patch-2
fixed "permanent" issue
-rw-r--r--module/plugins/hooks/ExtractArchive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index c0fe22545..5d71e89ec 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.36"
+ __version__ = "1.37"
__config__ = [("activated" , "bool" , "Activated" , True ),
("fullpath" , "bool" , "Extract with full paths" , True ),
@@ -471,7 +471,7 @@ class ExtractArchive(Hook):
file = fs_encode(f)
if os.path.exists(file) and self.trash:
send2trash(file)
- elif os.path.exists:
+ elif os.path.exists(file):
os.remove(file)
else:
self.logDebug("%s does not exists" % f)