summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-10-27 14:18:58 +0100
committerGravatar Jochen Oberreiter <joberreiter@users.noreply.github.com> 2015-10-27 14:18:58 +0100
commitebff903debbac7d82077a5e077dbf7887f1fdeeb (patch)
tree2d88f65c45418be80564892830108096659ba3d6 /module/plugins/hoster
parentMerge pull request #2115 from GammaC0de/patch-6 (diff)
downloadpyload-ebff903debbac7d82077a5e077dbf7887f1fdeeb.tar.xz
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`
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py4
1 files changed, 2 insertions, 2 deletions
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<ID>\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