summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-01 00:08:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-01 00:08:07 +0100
commit8bda0302c7a9452a1828ec9c9e2f60901d25e3c5 (patch)
tree9ef78e871f8236382d8cef1f569eddcb8269f89f /module
parentFix https://github.com/pyload/pyload/issues/1120 (2) (diff)
downloadpyload-8bda0302c7a9452a1828ec9c9e2f60901d25e3c5.tar.xz
[ExtractArchive] Fix http://forum.pyload.org/viewtopic.php?f=10&t=3990
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hooks/ExtractArchive.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index dde1a5ddc..dd1a82a82 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -91,7 +91,10 @@ class ArchiveQueue(object):
def remove(self, item):
queue = self.get()
- queue.pop(item, None)
+ try:
+ queue.remove(item)
+ except ValueError:
+ pass
return self.set(queue)
@@ -99,7 +102,7 @@ class ArchiveQueue(object):
class ExtractArchive(Hook):
__name__ = "ExtractArchive"
__type__ = "hook"
- __version__ = "1.21"
+ __version__ = "1.22"
__config__ = [("activated" , "bool" , "Activated" , True ),
("fullpath" , "bool" , "Extract with full paths" , True ),