diff options
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index b40cd51dd..3a76be694 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -130,6 +130,16 @@ class ShareonlineBiz(Hoster): self.wait() self.download(download_url) + # check download + check = self.checkDownload({ + "cookie": re.compile(r'<div id="dl_failure"'), + "fail": re.compile(r"<title>Share-Online") + }) + if check == "cookie": + self.retry(5, 60, "Cookie failure") + elif check == "fail": + self.retry(5, 300, "Download failed") + def checkErrors(self): found = re.search(r"/failure/(.*?)/1", self.req.lastEffectiveURL) |