summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-16 01:37:19 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-16 01:37:19 +0100
commitb205352a18db19f9fccb2f8dd73a12e6e87ef58d (patch)
tree77deb0fae7b03604e51f1d29e423aea6ebd4c98f /module
parentFix allDownloadsFinished and allDownloadsProcessed defs (diff)
downloadpyload-b205352a18db19f9fccb2f8dd73a12e6e87ef58d.tar.xz
[LinkdecrypterCom] Improve getCrypters routine
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hooks/LinkdecrypterCom.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/module/plugins/hooks/LinkdecrypterCom.py b/module/plugins/hooks/LinkdecrypterCom.py
index d4924a687..f85a598bc 100644
--- a/module/plugins/hooks/LinkdecrypterCom.py
+++ b/module/plugins/hooks/LinkdecrypterCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.MultiHook import MultiHook
class LinkdecrypterCom(MultiHook):
__name__ = "LinkdecrypterCom"
__type__ = "hook"
- __version__ = "1.01"
+ __version__ = "1.02"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
@@ -21,8 +21,5 @@ class LinkdecrypterCom(MultiHook):
def getCrypters(self):
- try:
- html = self.getURL("http://linkdecrypter.com/")
- return re.search(r'>Supported\(\d+\)</b>: <i>(.+?) \+ RSDF', html).group(1).split(', ')
- except Exception:
- return list()
+ return re.search(r'>Supported\(\d+\)</b>: <i>(.[\w.\-, ]+)',
+ self.getURL("http://linkdecrypter.com/").replace("(g)", "")).group(1).split(', ')