diff options
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) |