diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-07 15:45:17 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-07 15:45:17 +0200 |
commit | 921627014e243fb2dd9b4f9a9dfade26d1e11c12 (patch) | |
tree | 2fde2ac7ab11bbca41f2e065095232f46257ab0b /module/plugins/hoster | |
parent | fixes, closed #361 (diff) | |
download | pyload-921627014e243fb2dd9b4f9a9dfade26d1e11c12.tar.xz |
closed #375
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/FileserveCom.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/module/plugins/hoster/FileserveCom.py b/module/plugins/hoster/FileserveCom.py index 6cd842941..4654e4a7e 100644 --- a/module/plugins/hoster/FileserveCom.py +++ b/module/plugins/hoster/FileserveCom.py @@ -80,7 +80,17 @@ class FileserveCom(Hoster): def handlePremium(self):
- self.download(self.pyfile.url, post={"download": "premium"})
+
+ ret = self.account.loginApi(self.user, self.req)
+ ret = self.account.getShorten(self.req, ret["token"].strip("\x00"), self.file_id)
+
+ #110 offline
+ if ret["result_code"] == "110":
+ self.offline()
+
+ data = self.account.getDirectLink(self.req, ret["token"].strip("\x00"))
+
+ self.download(data['result_string'])
def handleFree(self):
self.html = self.load(self.pyfile.url)
|