summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/MegaCoNzFolder.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/crypter/MegaCoNzFolder.py')
-rw-r--r--module/plugins/crypter/MegaCoNzFolder.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/crypter/MegaCoNzFolder.py b/module/plugins/crypter/MegaCoNzFolder.py
index 09c83ff68..01e8338ac 100644
--- a/module/plugins/crypter/MegaCoNzFolder.py
+++ b/module/plugins/crypter/MegaCoNzFolder.py
@@ -12,9 +12,10 @@ class MegaCoNzFolder(Crypter):
__status__ = "broken"
__pattern__ = r'(https?://(?:www\.)?mega(\.co)?\.nz/|mega:|chrome:.+?)#F!(?P<ID>[\w^_]+)!(?P<KEY>[\w,\\-]+)'
- __config__ = [("activated" , "bool", "Activated" , True),
- ("use_subfolder" , "bool", "Save package to subfolder" , True),
- ("subfolder_per_pack", "bool", "Create a subfolder for each package", True)]
+ __config__ = [("activated" , "bool", "Activated" , True),
+ ("use_premium" , "bool", "Use premium account if available" , True),
+ ("use_subfolder" , "bool", "Save package to subfolder" , True),
+ ("subfolder_per_package", "bool", "Create a subfolder for each package", True)]
__description__ = """Mega.co.nz folder decrypter plugin"""
__license__ = "GPLv3"
@@ -28,7 +29,7 @@ class MegaCoNzFolder(Crypter):
def decrypt(self, pyfile):
url = "https://mega.co.nz/#F!%s!%s" % re.match(self.__pattern__, pyfile.url).groups()
self.data = self.load("http://rapidgen.org/linkfinder", post={'linklisturl': url})
- self.urls = re.findall(r'(https://mega(\.co)?\.nz/#N!.+?)<', self.data)
+ self.links = re.findall(r'(https://mega(\.co)?\.nz/#N!.+?)<', self.data)
getInfo = create_getInfo(MegaCoNzFolder)