From 3c6873b027e3ce2348f7ef9236592302668be890 Mon Sep 17 00:00:00 2001 From: mkaay Date: Fri, 4 Feb 2011 20:40:26 +0100 Subject: share-online.biz premium fix --- module/plugins/hoster/ShareonlineBiz.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'module/plugins/hoster') 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 -- cgit v1.2.3