diff options
author | mkaay <mkaay@mkaay.de> | 2011-02-05 16:43:18 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-02-05 16:43:18 +0100 |
commit | e098812e8855a90b777937b1c9b4471551910c6e (patch) | |
tree | e065998e8d3ac3c96336fd8a83769a6f5e7797b2 /module/plugins | |
parent | closed #230 (diff) | |
parent | share-online.biz premium propably broken due api changes (diff) | |
download | pyload-e098812e8855a90b777937b1c9b4471551910c6e.tar.xz |
merge
Diffstat (limited to 'module/plugins')
-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) |