summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-14 22:02:58 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-14 22:02:58 +0100
commit904f24ba78d6fd4a24dd78f667f4e7e92a5bac6d (patch)
treec1b1a011f8c9e36563cc708d063fb07ced96dd26 /module
parentfix filesonic (diff)
downloadpyload-904f24ba78d6fd4a24dd78f667f4e7e92a5bac6d.tar.xz
additional extract logs
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hooks/ExtractArchive.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index b7960620d..c789495ca 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -58,7 +58,7 @@ class ExtractArchive(Hook):
Provides: unrarFinished (folder, filename)
"""
__name__ = "ExtractArchive"
- __version__ = "0.11"
+ __version__ = "0.12"
__description__ = "Extract different kind of archives"
__config__ = [("activated", "bool", "Activated", True),
("fullpath", "bool", "Extract full path", True),
@@ -160,6 +160,7 @@ class ExtractArchive(Hook):
makedirs(out)
files_ids = [(save_join(dl, p.folder, x["name"]), x["id"]) for x in p.getChildren().itervalues()]
+ matched = False
# check as long there are unseen files
while files_ids:
@@ -167,7 +168,9 @@ class ExtractArchive(Hook):
for plugin in self.plugins:
targets = plugin.getTargets(files_ids)
- if targets: self.logDebug("Targets for %s: %s" % (plugin.__name__, targets))
+ if targets:
+ self.logDebug("Targets for %s: %s" % (plugin.__name__, targets))
+ matched = True
for target, fid in targets:
if target in extracted:
self.logDebug(basename(target), "skipped")
@@ -192,6 +195,9 @@ class ExtractArchive(Hook):
files_ids = new_files_ids # also check extracted files
+ if not matched: self.logInfo(_("No files found to extract"))
+
+
def startExtracting(self, plugin, fid, passwords, thread):
pyfile = self.core.files.getFile(fid)