summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegacrypterCom.py
diff options
context:
space:
mode:
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")