summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/SafelinkingNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-16 00:46:26 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-16 00:46:26 +0200
commita1e78f33dc2b0b6777fdcbc415673f3965b25542 (patch)
tree4f2f0c9d7592482409740be8647f8f6849d30681 /module/plugins/crypter/SafelinkingNet.py
parent[StealthTo] Mark dead (diff)
downloadpyload-a1e78f33dc2b0b6777fdcbc415673f3965b25542.tar.xz
Prefer self.urls and self.packages for adding links
Diffstat (limited to 'module/plugins/crypter/SafelinkingNet.py')
-rw-r--r--module/plugins/crypter/SafelinkingNet.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/module/plugins/crypter/SafelinkingNet.py b/module/plugins/crypter/SafelinkingNet.py
index 55f4c0ff6..2687ed2f2 100644
--- a/module/plugins/crypter/SafelinkingNet.py
+++ b/module/plugins/crypter/SafelinkingNet.py
@@ -30,13 +30,12 @@ class SafelinkingNet(Crypter):
self.load(url)
m = re.search("^Location: (.+)$", self.req.http.header, re.MULTILINE)
if m:
- self.core.files.addLinks([m.group(1)], pyfile.package().id)
+ self.urls = [m.group(1)]
else:
self.fail("Couldn't find forwarded Link")
else:
password = ""
- packageLinks = []
postData = {"post-protect": "1"}
self.html = self.load(url)
@@ -76,8 +75,6 @@ class SafelinkingNet(Crypter):
linkDict = json_loads(m.group(1))
for link in linkDict:
if not "http://" in link['full']:
- packageLinks.append("https://safelinking.net/d/" + link['full'])
+ self.urls.append("https://safelinking.net/d/" + link['full'])
else:
- packageLinks.append(link['full'])
-
- self.core.files.addLinks(packageLinks, pyfile.package().id)
+ self.urls.append(link['full'])