diff options
author | stickell <l.stickell@yahoo.it> | 2015-02-07 00:02:43 +0100 |
---|---|---|
committer | stickell <l.stickell@yahoo.it> | 2015-02-07 00:02:43 +0100 |
commit | b1ba0eecd6495fa82779c3e2d839916f288d6034 (patch) | |
tree | 3f37fea9159cc8436a07c4bf07c20b5d1e18690a /module | |
parent | Merge pull request #1141 from immenz/dev_extract (diff) | |
parent | [ExtractArchive] Fixed: Recursive Extraction (diff) | |
download | pyload-b1ba0eecd6495fa82779c3e2d839916f288d6034.tar.xz |
Merge pull request #1152 from immenz/dev_extract
[ExtractArchive] Fixed: Recursive Extraction
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hooks/ExtractArchive.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py index 4756d359c..e27c544d6 100644 --- a/module/plugins/hooks/ExtractArchive.py +++ b/module/plugins/hooks/ExtractArchive.py @@ -77,10 +77,6 @@ class ArchiveQueue(object): return self.plugin.setStorage("ExtractArchive:%s" % self.storage, item.encode('base64')[:-1]) - def clean(self): - return self.set([]) - - def delete(self): return self.plugin.delStorage("ExtractArchive:%s" % self.storage) @@ -99,6 +95,8 @@ class ArchiveQueue(object): queue.remove(item) except ValueError: pass + if queue == []: + return self.delete() return self.set(queue) @@ -315,7 +313,7 @@ class ExtractArchive(Hook): self.setPermissions(new_files) for filename in new_files: - file = fs_encode(save_join(filename, os.path.dirname(archive.filename))) + file = fs_encode(save_join(os.path.dirname(archive.filename), filename)) if not os.path.exists(file): self.logDebug("New file %s does not exists" % filename) continue |