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/UploadingCom.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pyload/plugins/hoster/UploadingCom.py') diff --git a/pyload/plugins/hoster/UploadingCom.py b/pyload/plugins/hoster/UploadingCom.py index 230c67490..9bb526506 100644 --- a/pyload/plugins/hoster/UploadingCom.py +++ b/pyload/plugins/hoster/UploadingCom.py @@ -83,8 +83,7 @@ class UploadingCom(SimpleHoster): if 'answer' in response and 'wait_time' in response['answer']: wait_time = int(response['answer']['wait_time']) self.logInfo("%s: Waiting %d seconds." % (self.__name__, wait_time)) - self.setWait(wait_time) - self.wait() + self.wait(wait_time) else: self.pluginParseError("AJAX/WAIT") @@ -107,8 +106,7 @@ class UploadingCom(SimpleHoster): check = self.checkDownload({"html": re.compile("\A