summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-02-01 14:44:20 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-02-01 14:44:20 +0100
commit6b3883c7bfbd87b50344155ddfce3bbd4a22d8ae (patch)
treeaaafb7fba775e4a8c9cb4212166067d5a1dfe681 /module/plugins/hoster
parentcloses #201 (diff)
downloadpyload-6b3883c7bfbd87b50344155ddfce3bbd4a22d8ae.tar.xz
fixed #222
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index f238c59bc..31cbc8285 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -120,7 +120,12 @@ class ShareonlineBiz(Hoster):
""" returns the absolute downloadable filepath
"""
if self.account:
- return re.search('loadfilelink\.decode\("(.*?)"\);', self.html, re.S).group(1)
+ try:
+ return re.search('loadfilelink\.decode\("(.*?)"\);', self.html, re.S).group(1)
+ except:
+ self.log.debug("Login issue, trying again")
+ self.account.relogin()
+ self.retry()
file_url_pattern = r'var\sdl="(.*?)"'
return b64decode(re.search(file_url_pattern, self.html).group(1))