diff options
author | mkaay <mkaay@mkaay.de> | 2011-02-04 20:40:26 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-02-04 20:40:26 +0100 |
commit | 3c6873b027e3ce2348f7ef9236592302668be890 (patch) | |
tree | e0b271e2e958f1a1b556228de407e79736833e14 /module/plugins/hoster | |
parent | CNL fixes (diff) | |
download | pyload-3c6873b027e3ce2348f7ef9236592302668be890.tar.xz |
share-online.biz premium fix
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index 37130cf66..d2fc6a54d 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -118,14 +118,13 @@ class ShareonlineBiz(Hoster): pw = self.account.accounts[self.user]["password"] info = self.account.getUserAPI(self.user) - if info["dl"] == "not_available": + if info["dl"].lower() == "not_available": self.fail("DL API error") - cj = self.account.getAccountCookies(self.user) - cj.setCookie("share-online.biz", "dl", info["dl"]) + self.req.cj.setCookie("share-online.biz", "dl", info["dl"]) lid = self.pyfile.url.replace("http://www.share-online.biz/dl/", "") #cut of everything but the id - src = self.load("http://api.share-online.biz/account.php?username=%s&password=%s&act=download&lid=%s" % (user, self.accounts[user]["password"], lid)) + src = self.load("http://api.share-online.biz/account.php?username=%s&password=%s&act=download&lid=%s" % (self.user, self.account.accounts[self.user]["password"], lid), post={}) dlinfo = {} for line in src.splitlines(): key, value = line.split(": ") @@ -135,7 +134,7 @@ class ShareonlineBiz(Hoster): self.offline() dlLink = dlinfo["url"] - self.download(download_url) + self.download(dlLink) def handleWebsitePremium(self): #seems to be buggy self.resumeDownload = False |