diff options
author | mkaay <mkaay@mkaay.de> | 2011-02-05 16:42:38 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-02-05 16:42:38 +0100 |
commit | 6a39e68e0bb0b88316b78d1b63c38e456f3c1163 (patch) | |
tree | 72e9f69c0ce19b3471fea20c299668a50f2ac6e2 | |
parent | setup encoding fix (diff) | |
download | pyload-6a39e68e0bb0b88316b78d1b63c38e456f3c1163.tar.xz |
share-online.biz premium propably broken due api changes
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index d2fc6a54d..65b02b696 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -134,7 +134,11 @@ class ShareonlineBiz(Hoster): self.offline() dlLink = dlinfo["url"] - self.download(dlLink) + if dlLink.startswith("/_dl.php"): + self.log.debug("got invalid downloadlink, falling back") + self.handleWebsitePremium() + else: + self.download(dlLink) def handleWebsitePremium(self): #seems to be buggy self.resumeDownload = False @@ -142,14 +146,11 @@ class ShareonlineBiz(Hoster): self.html = self.load(self.pyfile.url) if r"Die Nummer ist leider nicht richtig oder ausgelaufen!" in self.html: self.retry() - return True try: download_url = re.search('loadfilelink\.decode\("(.*?)"\);', self.html, re.S).group(1) except: - self.log.debug("Login issue, trying again") - self.account.relogin(self.user) #not working - self.retry() + self.fail("Session issue") self.download(download_url, cookies=True) |