From a9c4813716992a5739dcf2b4f86b7b309105dca3 Mon Sep 17 00:00:00 2001 From: godofdream Date: Wed, 5 Sep 2012 22:46:54 +0200 Subject: postdownload check for ShareOnline, closes #669 --- module/plugins/hoster/ShareonlineBiz.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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'
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) -- cgit v1.2.3