summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/SafelinkingNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-28 00:58:56 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-28 00:58:56 +0100
commit712ec761237eb989484b8c8f84fdf2d566500482 (patch)
tree9054ca99b3bf0c0938f6bec17c129e7ccfa43c96 /module/plugins/crypter/SafelinkingNet.py
parentMerge pull request #2125 from GammaC0de/patch-6 (diff)
downloadpyload-712ec761237eb989484b8c8f84fdf2d566500482.tar.xz
Fix https://github.com/pyload/pyload/issues/2112
Diffstat (limited to 'module/plugins/crypter/SafelinkingNet.py')
-rw-r--r--module/plugins/crypter/SafelinkingNet.py13
1 files changed, 7 insertions, 6 deletions
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)