summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/ShareonlineBiz.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster/ShareonlineBiz.py')
-rw-r--r--pyload/plugin/hoster/ShareonlineBiz.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/pyload/plugin/hoster/ShareonlineBiz.py b/pyload/plugin/hoster/ShareonlineBiz.py
index 5f01b5111..840421a67 100644
--- a/pyload/plugin/hoster/ShareonlineBiz.py
+++ b/pyload/plugin/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):