diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-03 00:29:40 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-03 00:29:40 +0200 |
commit | bdd63224c2d3760a0ded8be2b354abc139a1e858 (patch) | |
tree | a1c571de2b1e7534f6571834f6fccd57574b4b15 /module/plugins/hoster | |
parent | fix (diff) | |
download | pyload-bdd63224c2d3760a0ded8be2b354abc139a1e858.tar.xz |
wupload fix
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/FilesonicCom.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/module/plugins/hoster/FilesonicCom.py b/module/plugins/hoster/FilesonicCom.py index cbe74f214..ba6c4c963 100644 --- a/module/plugins/hoster/FilesonicCom.py +++ b/module/plugins/hoster/FilesonicCom.py @@ -121,7 +121,13 @@ class FilesonicCom(Hoster): def downloadPremium(self):
self.logDebug("Premium download")
- self.download(self.pyfile.url)
+
+ 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))
+
+ result = json_loads(self.load(api))
+ dl = result["FSApi_Link"]["getDownloadLink"]["response"]["links"][0]["url"]
+ self.download(dl)
def downloadFree(self):
self.logDebug("Free download")
|