From 9be1035b2945f82b269487a009c02bd5a83028b0 Mon Sep 17 00:00:00 2001 From: Stefano Date: Wed, 24 Jul 2013 14:24:51 +0200 Subject: Fixed PEP 8 violations in Hooks (cherry picked from commit 669b1e0ec048e1ed8aeb842b2570376e9ad96863) Conflicts: pyload/plugins/addons/CaptchaTrader.py pyload/plugins/addons/ClickAndLoad.py pyload/plugins/addons/Ev0InFetcher.py pyload/plugins/addons/ExternalScripts.py pyload/plugins/addons/ExtractArchive.py pyload/plugins/addons/HotFolder.py pyload/plugins/addons/MergeFiles.py pyload/plugins/addons/MultiHome.py pyload/plugins/addons/XMPPInterface.py --- pyload/plugins/addons/LinkdecrypterCom.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pyload/plugins/addons/LinkdecrypterCom.py') diff --git a/pyload/plugins/addons/LinkdecrypterCom.py b/pyload/plugins/addons/LinkdecrypterCom.py index c117cafb9..f2176e799 100644 --- a/pyload/plugins/addons/LinkdecrypterCom.py +++ b/pyload/plugins/addons/LinkdecrypterCom.py @@ -22,11 +22,12 @@ from module.plugins.Hook import Hook from module.network.RequestFactory import getURL from module.utils import remove_chars + class LinkdecrypterCom(Hook): __name__ = "LinkdecrypterCom" __version__ = "0.18" __description__ = """linkdecrypter.com - regexp loader""" - __config__ = [ ("activated", "bool", "Activated" , "False") ] + __config__ = [("activated", "bool", "Activated", "False")] __author_name__ = ("zoidberg") def coreReady(self): @@ -36,8 +37,8 @@ class LinkdecrypterCom(Hook): self.logError(_("Crypter list not found")) return - builtin = [ name.lower() for name in self.core.pluginManager.crypterPlugins.keys() ] - builtin.extend([ "downloadserienjunkiesorg" ]) + builtin = [name.lower() for name in self.core.pluginManager.crypterPlugins.keys()] + builtin.extend(["downloadserienjunkiesorg"]) crypter_pattern = re.compile("(\w[\w.-]+)") online = [] @@ -49,11 +50,11 @@ class LinkdecrypterCom(Hook): if not online: self.logError(_("Crypter list is empty")) return - + regexp = r"https?://([^.]+\.)*?(%s)/.*" % "|".join(online) dict = self.core.pluginManager.crypterPlugins[self.__name__] dict["pattern"] = regexp dict["re"] = re.compile(regexp) - + self.logDebug("REGEXP: " + regexp) -- cgit v1.2.3