diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-09 03:12:41 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-09 03:12:41 +0100 |
commit | 59f72bfc5ed721c80c821bd0ca1bc8daf0d49880 (patch) | |
tree | 05d0159405f2059bc89b3a55eab8ee4a94871aac /module/plugins/hooks | |
parent | [PluginManager] Fix parse method (diff) | |
download | pyload-59f72bfc5ed721c80c821bd0ca1bc8daf0d49880.tar.xz |
Code cosmetics
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r-- | module/plugins/hooks/BypassCaptcha.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/CaptchaBrotherhood.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/DeathByCaptcha.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/ExpertDecoders.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/ExtractArchive.py | 8 | ||||
-rw-r--r-- | module/plugins/hooks/HotFolder.py | 6 | ||||
-rw-r--r-- | module/plugins/hooks/ImageTyperz.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/WindowsPhoneToastNotify.py | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/module/plugins/hooks/BypassCaptcha.py b/module/plugins/hooks/BypassCaptcha.py index 4e287668b..b8b55ac63 100644 --- a/module/plugins/hooks/BypassCaptcha.py +++ b/module/plugins/hooks/BypassCaptcha.py @@ -49,7 +49,7 @@ class BypassCaptcha(Hook): def setup(self): - self.info = {} + self.info = {} #@TODO: Remove in 0.4.10 def getCredits(self): diff --git a/module/plugins/hooks/CaptchaBrotherhood.py b/module/plugins/hooks/CaptchaBrotherhood.py index 8033ad544..eb0bd9e67 100644 --- a/module/plugins/hooks/CaptchaBrotherhood.py +++ b/module/plugins/hooks/CaptchaBrotherhood.py @@ -55,7 +55,7 @@ class CaptchaBrotherhood(Hook): def setup(self): - self.info = {} + self.info = {} #@TODO: Remove in 0.4.10 def getCredits(self): diff --git a/module/plugins/hooks/DeathByCaptcha.py b/module/plugins/hooks/DeathByCaptcha.py index 0b584c632..42495f5fb 100644 --- a/module/plugins/hooks/DeathByCaptcha.py +++ b/module/plugins/hooks/DeathByCaptcha.py @@ -68,7 +68,7 @@ class DeathByCaptcha(Hook): def setup(self): - self.info = {} + self.info = {} #@TODO: Remove in 0.4.10 def call_api(self, api="captcha", post=False, multipart=False): diff --git a/module/plugins/hooks/ExpertDecoders.py b/module/plugins/hooks/ExpertDecoders.py index a4ae6fa89..faaba6906 100644 --- a/module/plugins/hooks/ExpertDecoders.py +++ b/module/plugins/hooks/ExpertDecoders.py @@ -30,7 +30,7 @@ class ExpertDecoders(Hook): def setup(self): - self.info = {} + self.info = {} #@TODO: Remove in 0.4.10 def getCredits(self): diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py index 39da1ee7b..f5f30fc52 100644 --- a/module/plugins/hooks/ExtractArchive.py +++ b/module/plugins/hooks/ExtractArchive.py @@ -309,16 +309,16 @@ class ExtractArchive(Hook): def reloadPasswords(self): passwordfile = self.getConfig("passwordfile") - + try: passwords = [] with open(passwordfile, "a+") as f: for pw in f.read().splitlines(): passwords.append(pw) - + except IOError, e: self.logError(str(e)) - + else: self.passwords = passwords @@ -330,7 +330,7 @@ class ExtractArchive(Hook): if pw in self.passwords: self.passwords.remove(pw) - + self.passwords.insert(0, pw) try: diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py index 5e9dd9547..15a8f43d5 100644 --- a/module/plugins/hooks/HotFolder.py +++ b/module/plugins/hooks/HotFolder.py @@ -31,7 +31,7 @@ class HotFolder(Hook): def periodical(self): folder = fs_encode(self.getConfig("folder")) - + try: if not exists(join(folder, "finished")): makedirs(join(folder, "finished")) @@ -39,7 +39,7 @@ class HotFolder(Hook): if self.getConfig("watch_file"): with open(fs_encode(self.getConfig("file")), "a+") as f: content = f.read().strip() - + if content: name = "%s_%s.txt" % (self.getConfig("file"), time.strftime("%H-%M-%S_%d%b%Y")) @@ -59,6 +59,6 @@ class HotFolder(Hook): self.logInfo(_("Added %s from HotFolder") % f) self.core.api.addPackage(f, [newpath], 1) - + except IOError, e: self.logError(str(e)) diff --git a/module/plugins/hooks/ImageTyperz.py b/module/plugins/hooks/ImageTyperz.py index c0a573c5c..8d253c249 100644 --- a/module/plugins/hooks/ImageTyperz.py +++ b/module/plugins/hooks/ImageTyperz.py @@ -51,7 +51,7 @@ class ImageTyperz(Hook): def setup(self): - self.info = {} + self.info = {} #@TODO: Remove in 0.4.10 def getCredits(self): diff --git a/module/plugins/hooks/WindowsPhoneToastNotify.py b/module/plugins/hooks/WindowsPhoneToastNotify.py index 746aa188d..053ea47d0 100644 --- a/module/plugins/hooks/WindowsPhoneToastNotify.py +++ b/module/plugins/hooks/WindowsPhoneToastNotify.py @@ -22,7 +22,7 @@ class WindowsPhoneToastNotify(Hook): def setup(self): - self.info = {} + self.info = {} #@TODO: Remove in 0.4.10 def getXmlData(self): |