From 239a6e5728e5d15a5f15a28c01dd31a2f1c5c309 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 5 Dec 2013 16:34:59 +0100 Subject: catch all errors when starting link decrypter (cherry picked from commit 7e44d40af3b2574eae04e1df3b40f536776593c8) --- pyload/plugins/addons/LinkdecrypterCom.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyload/plugins/addons/LinkdecrypterCom.py b/pyload/plugins/addons/LinkdecrypterCom.py index f2176e799..8f656eb99 100644 --- a/pyload/plugins/addons/LinkdecrypterCom.py +++ b/pyload/plugins/addons/LinkdecrypterCom.py @@ -25,12 +25,18 @@ from module.utils import remove_chars class LinkdecrypterCom(Hook): __name__ = "LinkdecrypterCom" - __version__ = "0.18" + __version__ = "0.19" __description__ = """linkdecrypter.com - regexp loader""" __config__ = [("activated", "bool", "Activated", "False")] __author_name__ = ("zoidberg") def coreReady(self): + try: + self.loadPatterns() + except Exception, e: + self.logError(e) + + def loadPatterns(self): page = getURL("http://linkdecrypter.com/") m = re.search(r'Supported\(\d+\): ([^+<]*)', page) if not m: -- cgit v1.2.3