summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ShareonlineBiz.py
diff options
context:
space:
mode:
authorGravatar godofdream <soilfiction@gmail.com> 2012-09-05 22:46:54 +0200
committerGravatar godofdream <soilfiction@gmail.com> 2012-09-05 22:46:54 +0200
commita9c4813716992a5739dcf2b4f86b7b309105dca3 (patch)
treec3615b6e1dd9fc63c6c01d380a1349a5e4e2d2fa /module/plugins/hoster/ShareonlineBiz.py
parentupdate ddlstorage/xfilesharingpro - closed #667 (diff)
downloadpyload-a9c4813716992a5739dcf2b4f86b7b309105dca3.tar.xz
postdownload check for ShareOnline, closes #669
Diffstat (limited to 'module/plugins/hoster/ShareonlineBiz.py')
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py10
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)