From 6a39e68e0bb0b88316b78d1b63c38e456f3c1163 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sat, 5 Feb 2011 16:42:38 +0100 Subject: share-online.biz premium propably broken due api changes --- module/plugins/hoster/ShareonlineBiz.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'module') 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) -- cgit v1.2.3