diff options
author | mkaay <mkaay@mkaay.de> | 2010-08-18 22:19:07 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-08-18 22:19:07 +0200 |
commit | 8067fe27191f1726e9f5a7eb705d3973a69bf38e (patch) | |
tree | e898649b4572c3a755549215c5cdff9a22f9eb02 /module/plugins/hooks | |
parent | edited readme, save configs after start (diff) | |
download | pyload-8067fe27191f1726e9f5a7eb705d3973a69bf38e.tar.xz |
fixes, missing file
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r-- | module/plugins/hooks/UnRar.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/module/plugins/hooks/UnRar.py b/module/plugins/hooks/UnRar.py index 46e7874d3..71a1ce96a 100644 --- a/module/plugins/hooks/UnRar.py +++ b/module/plugins/hooks/UnRar.py @@ -108,20 +108,28 @@ class UnRar(Hook): try: success = u.crackPassword(passwords=self.passwords, statusFunction=s, overwrite=True, destination=folder, fullPath=self.getConfig("fullpath")) except WrongPasswordError: + self.core.log.info("Unrar of %s failed (wrong password)" % fname) continue except CommandError, e: if re.search("Cannot find volume", e.stderr): + self.core.log.info("Unrar of %s failed (missing volume)" % fname) continue try: if e.getExitCode() == 1 and len(u.listContent(u.getPassword())) == 1: + self.core.log.debug("Unrar of %s ok" % fname) self.removeFiles(pack, fname) except: + self.core.log.info("Unrar of %s failed" % fname) continue except UnknownError: + self.core.log.info("Unrar of %s failed" % fname) continue else: if success: + self.core.log.debug("Unrar of %s ok" % fname) self.removeFiles(pack, fname) + else: + self.core.log.info("Unrar of %s failed (wrong password)" % fname) finally: pyfile.alternativePercent = None pyfile.setStatus("finished") |