From ebff903debbac7d82077a5e077dbf7887f1fdeeb Mon Sep 17 00:00:00 2001 From: Jochen Oberreiter Date: Tue, 27 Oct 2015 14:18:58 +0100 Subject: Fix error checking regex In case of a failure, the regex `r"/failure/(.*?)/1"` in `check_errors` may fail, due to the fact that there can be any other number than 1 following the error message itself, e.g. `dl/TPDSG2RNU70/failure/freelimit/209715200/363232323337313B666F6F` --- module/plugins/hoster/ShareonlineBiz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index 68fc22171..6380fd4c0 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class ShareonlineBiz(SimpleHoster): __name__ = "ShareonlineBiz" __type__ = "hoster" - __version__ = "0.61" + __version__ = "0.62" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?(share-online\.biz|egoshare\.com)/(download\.php\?id=|dl/)(?P\w+)' @@ -146,7 +146,7 @@ class ShareonlineBiz(SimpleHoster): def check_errors(self): - m = re.search(r"/failure/(.*?)/1", self.req.lastEffectiveURL) + m = re.search(r"/failure/(.*?)/", self.req.lastEffectiveURL) if m is None: self.info.pop('error', None) return -- cgit v1.2.3