summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegacrypterCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-11 01:04:09 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-11 01:04:09 +0200
commitc3b3f3ea5c813edbe3e6941c535c78ad494244ee (patch)
tree6a76a01cdf3d5fe678e02618bdbe7d0c5ce8ca8c /module/plugins/hoster/MegacrypterCom.py
parentFix https://github.com/pyload/pyload/issues/2002 (diff)
downloadpyload-c3b3f3ea5c813edbe3e6941c535c78ad494244ee.tar.xz
Fix https://github.com/pyload/pyload/issues/1998
Fix https://github.com/pyload/pyload/issues/1999 Fix https://github.com/pyload/pyload/issues/2001
Diffstat (limited to 'module/plugins/hoster/MegacrypterCom.py')
-rw-r--r--module/plugins/hoster/MegacrypterCom.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/MegacrypterCom.py b/module/plugins/hoster/MegacrypterCom.py
index 206a8e8ce..655258e1d 100644
--- a/module/plugins/hoster/MegacrypterCom.py
+++ b/module/plugins/hoster/MegacrypterCom.py
@@ -8,12 +8,13 @@ from module.plugins.hoster.MegaCoNz import MegaCoNz
class MegacrypterCom(MegaCoNz):
- __name = "MegacrypterCom"
+ __name__ = "MegacrypterCom"
__type__ = "hoster"
__version__ = "0.23"
__status__ = "testing"
__pattern__ = r'https?://\w{0,10}\.?megacrypter\.com/[\w\-!]+'
+ __config__ = [("activated", "bool", "Activated", True)]
__description__ = """Megacrypter.com decrypter plugin"""
__license__ = "GPLv3"
@@ -36,7 +37,7 @@ class MegacrypterCom(MegaCoNz):
def process(self, pyfile):
#: Match is guaranteed because plugin was chosen to handle url
- node = re.match(self.__pattern, pyfile.url).group(0)
+ node = re.match(self.__pattern__, pyfile.url).group(0)
#: get Mega.co.nz link info
info = self.api_response(link=node, m="info")