diff options
| author | 2013-12-05 16:34:59 +0100 | |
|---|---|---|
| committer | 2013-12-05 16:34:59 +0100 | |
| commit | 7e44d40af3b2574eae04e1df3b40f536776593c8 (patch) | |
| tree | 44c4933f29b39f874a381e2fc328644bf994f8cd /module | |
| parent | HotfileCom: marked as dead (diff) | |
| download | pyload-7e44d40af3b2574eae04e1df3b40f536776593c8.tar.xz | |
catch all errors when starting link decrypter
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/hooks/LinkdecrypterCom.py | 8 | 
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:  | 
