From b5bff211b15187ff01dacaacdc022dc917d48b81 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 11 Apr 2014 12:17:03 +0200 Subject: Fix retry time formats Merges vuolter/pyload@498b9e3 (cherry picked from commit 381c4d02a900fac224ccaa802db080cf577ed2fb) --- pyload/plugins/hoster/MegasharesCom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyload/plugins/hoster/MegasharesCom.py') diff --git a/pyload/plugins/hoster/MegasharesCom.py b/pyload/plugins/hoster/MegasharesCom.py index 9949da9d5..bc0e9dd05 100644 --- a/pyload/plugins/hoster/MegasharesCom.py +++ b/pyload/plugins/hoster/MegasharesCom.py @@ -52,7 +52,7 @@ class MegasharesCom(SimpleHoster): self.html = self.load(self.pyfile.url, decode=True) if self.NO_SLOTS_PATTERN in self.html: - self.retry(wait_time=300) + self.retry(wait_time=5 * 60) self.getFileInfo() #if self.pyfile.size > 576716800: self.fail("This file is too large for free download") @@ -78,7 +78,7 @@ class MegasharesCom(SimpleHoster): if 'Thank you for reactivating your passport.' in response: self.correctCaptcha() - self.retry(0) + self.retry() else: self.invalidCaptcha() else: @@ -94,8 +94,8 @@ class MegasharesCom(SimpleHoster): if not data_left: found = re.search(self.PASSPORT_RENEW_PATTERN, self.html) - renew = (found.group(1) + 60 * (found.group(2) + 60 * found.group(3))) if found else 600 - self.retry(renew, 15, "Unable to get passport") + renew = found.group(1) + found.group(2) + found.group(3) * 60 * 60 if found else 10 * 60 + self.retry(max_tries=15, wait_time=renew, reason="Unable to get passport") self.handleDownload(False) -- cgit v1.2.3