From 8bda0302c7a9452a1828ec9c9e2f60901d25e3c5 Mon Sep 17 00:00:00 2001
From: Walter Purcaro <vuolter@gmail.com>
Date: Sun, 1 Feb 2015 00:08:07 +0100
Subject: [ExtractArchive] Fix
 http://forum.pyload.org/viewtopic.php?f=10&t=3990

---
 module/plugins/hooks/ExtractArchive.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'module')

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                                                                     ),
-- 
cgit v1.2.3