summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/addons/ExtractArchive.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/addons/ExtractArchive.py')
-rw-r--r--pyload/plugins/addons/ExtractArchive.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyload/plugins/addons/ExtractArchive.py b/pyload/plugins/addons/ExtractArchive.py
index 67fa5c820..c3c5dbeb7 100644
--- a/pyload/plugins/addons/ExtractArchive.py
+++ b/pyload/plugins/addons/ExtractArchive.py
@@ -51,9 +51,10 @@ if os.name != "nt":
from pyload.utils.fs import safe_join as save_join, fs_encode
-from pyload.plugins.Addon import Addon, threaded, AddonHandler, AddonProperty
+from pyload.plugins.Addon import Addon, threaded, AddonHandler
from pyload.plugins.internal.AbstractExtractor import ArchiveError, CRCError, WrongPassword
+# TODO: plugin needs a rewrite to work on unfinished packages
class ExtractArchive(Addon):
"""
@@ -161,7 +162,7 @@ class ExtractArchive(Addon):
if not exists(out):
makedirs(out)
- files_ids = [(save_join(dl, p.folder, x["name"]), x["id"]) for x in p.getChildren().itervalues()]
+ files_ids = [(save_join(dl, p.folder, f.name), f.fid) for f in p.getFiles().itervalues()]
matched = False
# check as long there are unseen files