summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-05 16:34:59 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-05 16:34:59 +0100
commit7e44d40af3b2574eae04e1df3b40f536776593c8 (patch)
tree44c4933f29b39f874a381e2fc328644bf994f8cd
parentHotfileCom: marked as dead (diff)
downloadpyload-7e44d40af3b2574eae04e1df3b40f536776593c8.tar.xz
catch all errors when starting link decrypter
-rw-r--r--module/plugins/hooks/LinkdecrypterCom.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/module/plugins/hooks/LinkdecrypterCom.py b/module/plugins/hooks/LinkdecrypterCom.py
index f2176e799..8f656eb99 100644
--- a/module/plugins/hooks/LinkdecrypterCom.py
+++ b/module/plugins/hooks/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: