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/CatShareNet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pyload/plugins/hoster/CatShareNet.py') diff --git a/pyload/plugins/hoster/CatShareNet.py b/pyload/plugins/hoster/CatShareNet.py index 4419779e3..e0a424b93 100644 --- a/pyload/plugins/hoster/CatShareNet.py +++ b/pyload/plugins/hoster/CatShareNet.py @@ -23,8 +23,7 @@ class CatShareNet(SimpleHoster): found = re.search(self.SECONDS_PATTERN, self.html) seconds = int(found.group(1)) self.logDebug("Seconds found", seconds) - self.setWait(seconds + 1) - self.wait() + self.wait(seconds + 1) recaptcha = ReCaptcha(self) challenge, code = recaptcha.challenge(self.RECAPTCHA_KEY) post_data = {"recaptcha_challenge_field": challenge, "recaptcha_response_field": code} -- cgit v1.2.3