From 52b5c2a15b2dfa9bcc2ffdcc90b8e3f29fdaa7d8 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 11 Apr 2014 12:17:38 +0200 Subject: Use wait to set time in SimpleHoster plugins Merges vuolter/pyload@bb002ac (cherry picked from commit 7f1467c64fe5c0e902498b3252afd65cb68ed2f9) --- pyload/plugins/hoster/BayfilesCom.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pyload/plugins/hoster/BayfilesCom.py') diff --git a/pyload/plugins/hoster/BayfilesCom.py b/pyload/plugins/hoster/BayfilesCom.py index f1b36221f..2254ffb1e 100644 --- a/pyload/plugins/hoster/BayfilesCom.py +++ b/pyload/plugins/hoster/BayfilesCom.py @@ -43,8 +43,7 @@ class BayfilesCom(SimpleHoster): def handleFree(self): found = re.search(self.WAIT_PATTERN, self.html) if found: - self.setWait(int(found.group(1)) * 60) - self.wait() + self.wait(int(found.group(1)) * 60) self.retry() # Get download token @@ -61,8 +60,7 @@ class BayfilesCom(SimpleHoster): if not "token" in response or not response['token']: self.fail('No token') - self.setWait(int(delay)) - self.wait() + self.wait(int(delay)) self.html = self.load('https://bayfiles.com/ajax_download', get={ "token": response['token'], -- cgit v1.2.3