diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-03-24 16:56:35 +0100 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-03-24 16:56:35 +0100 |
commit | 08034f0e592d915297665175062ce3e849e48dbf (patch) | |
tree | d9dbe3956b5f9b870f22fafc975d6da54a82be29 /module/plugins/hoster/BayfilesCom.py | |
parent | netload fix (diff) | |
download | pyload-08034f0e592d915297665175062ce3e849e48dbf.tar.xz |
icyfiles, bayfiles by godofdream, alldebrid json api, zevera python 2.5 compat.
Diffstat (limited to 'module/plugins/hoster/BayfilesCom.py')
-rw-r--r-- | module/plugins/hoster/BayfilesCom.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/module/plugins/hoster/BayfilesCom.py b/module/plugins/hoster/BayfilesCom.py index e2c74e5c0..a69dd3ea9 100644 --- a/module/plugins/hoster/BayfilesCom.py +++ b/module/plugins/hoster/BayfilesCom.py @@ -79,6 +79,15 @@ class BayfilesCom(SimpleHoster): def startDownload(self, url): self.logDebug("%s URL: %s" % ("Premium" if self.premium else "Free", url)) - self.download(url) + self.download(url) + # check download + check = self.checkDownload({ + "waitforfreeslots": re.compile(r"^<title>BayFiles</title>$") + }) + if check == "waitforfreeslots": + self.waitForFreeSlot() + + def waitForFreeSlot(self): + self.retry(60, 300, "Wait for free slot") -getInfo = create_getInfo(BayfilesCom)
\ No newline at end of file +getInfo = create_getInfo(BayfilesCom) |