diff options
| author | 2012-09-05 22:46:54 +0200 | |
|---|---|---|
| committer | 2012-09-05 22:46:54 +0200 | |
| commit | a9c4813716992a5739dcf2b4f86b7b309105dca3 (patch) | |
| tree | c3615b6e1dd9fc63c6c01d380a1349a5e4e2d2fa /module/plugins | |
| parent | update ddlstorage/xfilesharingpro - closed #667 (diff) | |
| download | pyload-a9c4813716992a5739dcf2b4f86b7b309105dca3.tar.xz | |
postdownload check for ShareOnline, closes #669
Diffstat (limited to 'module/plugins')
| -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) | 
