From 712ec761237eb989484b8c8f84fdf2d566500482 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 28 Oct 2015 00:58:56 +0100 Subject: Fix https://github.com/pyload/pyload/issues/2112 --- module/plugins/crypter/SafelinkingNet.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'module/plugins/crypter/SafelinkingNet.py') diff --git a/module/plugins/crypter/SafelinkingNet.py b/module/plugins/crypter/SafelinkingNet.py index 787c0c81a..98af1522f 100644 --- a/module/plugins/crypter/SafelinkingNet.py +++ b/module/plugins/crypter/SafelinkingNet.py @@ -16,9 +16,10 @@ class SafelinkingNet(Crypter): __status__ = "testing" __pattern__ = r'https?://(?:www\.)?safelinking\.net/([pd])/\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__ = """Safelinking.net decrypter plugin""" __license__ = "GPLv3" @@ -35,7 +36,7 @@ class SafelinkingNet(Crypter): header = self.load(url, just_header=True) if 'location' in header: - self.urls = [header.get('location')] + self.links = [header.get('location')] else: self.error(_("Couldn't find forwarded Link")) @@ -79,9 +80,9 @@ class SafelinkingNet(Crypter): linkDict = json.loads(m.group(1)) for link in linkDict: if not "http://" in link['full']: - self.urls.append("https://safelinking.net/d/" + link['full']) + self.links.append("https://safelinking.net/d/" + link['full']) else: - self.urls.append(link['full']) + self.links.append(link['full']) getInfo = create_getInfo(SafelinkingNet) -- cgit v1.2.3