diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-25 22:57:33 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-25 22:57:33 +0100 |
commit | 10bd0793f4dc0191d97da390a43552a272c8290e (patch) | |
tree | 87b62f81e62b630a89e80beabdec5dd54a359338 /pyload/plugins/addons/ExtractArchive.py | |
parent | render addon menu for packages (diff) | |
download | pyload-10bd0793f4dc0191d97da390a43552a272c8290e.tar.xz |
invoke addons via context menu
Diffstat (limited to 'pyload/plugins/addons/ExtractArchive.py')
-rw-r--r-- | pyload/plugins/addons/ExtractArchive.py | 5 |
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 |