summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ShareonlineBiz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-18 16:07:21 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-18 16:07:21 +0100
commit4e9c8f7ab1269966a9eac9e1b6363f5458f9f970 (patch)
tree82f54383c4f5a341ff43c06bb51e6309987c22ad /module/plugins/hoster/ShareonlineBiz.py
parentUpdate account plugins (diff)
downloadpyload-4e9c8f7ab1269966a9eac9e1b6363f5458f9f970.tar.xz
Update checkFile routine in some hoster plugins
Diffstat (limited to 'module/plugins/hoster/ShareonlineBiz.py')
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index c40e8560f..dc3d5093c 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -14,7 +14,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class ShareonlineBiz(SimpleHoster):
__name__ = "ShareonlineBiz"
__type__ = "hoster"
- __version__ = "0.44"
+ __version__ = "0.45"
__pattern__ = r'https?://(?:www\.)?(share-online\.biz|egoshare\.com)/(download\.php\?id=|dl/)(?P<ID>\w+)'
@@ -108,17 +108,14 @@ class ShareonlineBiz(SimpleHoster):
def checkFile(self):
- # check download
+ super(ShareonlineBiz, self).checkFile()
+
check = self.checkDownload({
- 'empty' : re.compile(r"^$"),
'cookie': re.compile(r'<div id="dl_failure"'),
'fail' : re.compile(r"<title>Share-Online")
})
- if check == "empty":
- self.fail(_("Empty file"))
-
- elif check == "cookie":
+ if check == "cookie":
self.invalidCaptcha()
self.retry(5, 60, _("Cookie failure"))