diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-12-05 16:34:59 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-12-15 22:27:14 +0100 |
commit | 239a6e5728e5d15a5f15a28c01dd31a2f1c5c309 (patch) | |
tree | b5a5bfbb0e926d406139c9602e40690397f34323 | |
parent | HotfileCom: marked as dead (diff) | |
download | pyload-239a6e5728e5d15a5f15a28c01dd31a2f1c5c309.tar.xz |
catch all errors when starting link decrypter
(cherry picked from commit 7e44d40af3b2574eae04e1df3b40f536776593c8)
-rw-r--r-- | pyload/plugins/addons/LinkdecrypterCom.py | 8 |
1 files changed, 7 insertions, 1 deletions
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'<b>Supported\(\d+\)</b>: <i>([^+<]*)', page) if not m: |