From 08034f0e592d915297665175062ce3e849e48dbf Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Sat, 24 Mar 2012 16:56:35 +0100 Subject: icyfiles, bayfiles by godofdream, alldebrid json api, zevera python 2.5 compat. --- module/plugins/hoster/BayfilesCom.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/BayfilesCom.py') 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"^BayFiles$") + }) + 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) -- cgit v1.2.3