From 6b3883c7bfbd87b50344155ddfce3bbd4a22d8ae Mon Sep 17 00:00:00 2001 From: mkaay Date: Tue, 1 Feb 2011 14:44:20 +0100 Subject: fixed #222 --- module/plugins/hoster/ShareonlineBiz.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'module/plugins/hoster/ShareonlineBiz.py') 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)) -- cgit v1.2.3