summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-02-04 20:40:26 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-02-04 20:40:26 +0100
commit3c6873b027e3ce2348f7ef9236592302668be890 (patch)
treee0b271e2e958f1a1b556228de407e79736833e14 /module/plugins/hoster
parentCNL fixes (diff)
downloadpyload-3c6873b027e3ce2348f7ef9236592302668be890.tar.xz
share-online.biz premium fix
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py9
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