diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-04-14 01:49:49 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-04-14 01:49:49 +0200 |
commit | 20d88924fd6a3a5d15b521441a414aa3f8121e79 (patch) | |
tree | 2477c8c150048bdc580a6fe6000eb62d6db89b6f /module/plugins/hoster/ShareonlineBiz.py | |
parent | Update DepositfilesCom.py (diff) | |
parent | [UnSkipOnFail] Typo (diff) | |
download | pyload-20d88924fd6a3a5d15b521441a414aa3f8121e79.tar.xz |
Merge pull request #1 from pyload/stable
Sync
Diffstat (limited to 'module/plugins/hoster/ShareonlineBiz.py')
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index 102e91276..fea5781fe 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -98,16 +98,14 @@ class ShareonlineBiz(SimpleHoster): self.checkErrors() - res = self.handleCaptcha() - download_url = res.decode('base64') + res = self.handleCaptcha() + self.link = res.decode('base64') - if not download_url.startswith("http://"): + if not self.link.startswith("http://"): self.error(_("Wrong download url")) self.wait() - self.download(download_url) - def checkFile(self, rules={}): check = self.checkDownload({'cookie': re.compile(r'<div id="dl_failure"'), @@ -145,13 +143,12 @@ class ShareonlineBiz(SimpleHoster): pyfile.name = dlinfo['name'] pyfile.size = int(dlinfo['size']) - dlLink = dlinfo['url'] + self.link = dlinfo['url'] - if dlLink == "server_under_maintenance": + if self.link == "server_under_maintenance": self.tempOffline() else: self.multiDL = True - self.download(dlLink) def checkErrors(self): |