summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilesonicCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-04 14:05:50 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-04 14:05:50 +0100
commita1d702007e16fb80294252e249d9e4e65ca906cd (patch)
tree14f1e746f8a33f5ba7936337bb6c8858cefbf09a /module/plugins/hoster/FilesonicCom.py
parentBetter download connection handling: Detect server error earlier, fallback to... (diff)
downloadpyload-a1d702007e16fb80294252e249d9e4e65ca906cd.tar.xz
little fix
Diffstat (limited to 'module/plugins/hoster/FilesonicCom.py')
-rw-r--r--module/plugins/hoster/FilesonicCom.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/hoster/FilesonicCom.py b/module/plugins/hoster/FilesonicCom.py
index a74bcc1c8..bb5152d29 100644
--- a/module/plugins/hoster/FilesonicCom.py
+++ b/module/plugins/hoster/FilesonicCom.py
@@ -119,10 +119,9 @@ class FilesonicCom(Hoster):
def downloadPremium(self):
self.logDebug("Premium download")
- api = self.API_ADDRESS + "/link?method=getDownloadLink&u=%s&p=%s&ids=%s" % (
- self.user, self.account.getAccountData(self.user)["password"], getId(self.pyfile.url))
+ api = self.API_ADDRESS + "/link?method=getDownloadLink&u=%%s&p=%%s&ids=%s" % getId(self.pyfile.url)
- result = json_loads(self.load(api))
+ result = json_loads(self.load(api % (self.user, self.account.getAccountData(self.user))))
links = result["FSApi_Link"]["getDownloadLink"]["response"]["links"]
#wupload seems to return list and no dicts