From 40fc2dda96f78a737bb8b7e17d69cec5ccdffa89 Mon Sep 17 00:00:00 2001 From: fragonib Date: Sat, 12 Feb 2011 17:23:04 +0100 Subject: FileserveCom: Fixes download check --- module/plugins/hoster/FileserveCom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/FileserveCom.py b/module/plugins/hoster/FileserveCom.py index da1de9420..2e1bb1a59 100644 --- a/module/plugins/hoster/FileserveCom.py +++ b/module/plugins/hoster/FileserveCom.py @@ -103,16 +103,16 @@ class FileserveCom(Hoster): # this may either download our file or forward us to an error page dl = self.download(self.pyfile.url, post={"download":"normal"}) - check = self.checkDownload({"expired": "Your download link has expired"}, - {"wait": re.compile(r'You need to wait (\d+) seconds to start another download')}) + check = self.checkDownload({"expired": "Your download link has expired", + "wait": re.compile(r'You need to wait (\d+) seconds to start another download')}) if check == "expired": self.retry() elif check == "wait": wait_time = 720 if self.lastCheck is not None: - wait_time = self.lastCheck.group(1) - self.setWait(wait_time) + wait_time = int(self.lastCheck.group(1)) + self.setWait(wait_time+3) self.log.debug("%s: You need to wait %d seconds for another download." % (self.__name__, wait_time)) self.wantReconnect = True self.wait() -- cgit v1.2.3