diff options
author | fragonib <devnull@localhost> | 2011-02-12 17:23:04 +0100 |
---|---|---|
committer | fragonib <devnull@localhost> | 2011-02-12 17:23:04 +0100 |
commit | 40fc2dda96f78a737bb8b7e17d69cec5ccdffa89 (patch) | |
tree | 7f257d63810ff34528bc854b18ff0466d5bfba74 /module/plugins/hoster/FileserveCom.py | |
parent | xdcc fixes (diff) | |
download | pyload-40fc2dda96f78a737bb8b7e17d69cec5ccdffa89.tar.xz |
FileserveCom: Fixes download check
Diffstat (limited to 'module/plugins/hoster/FileserveCom.py')
-rw-r--r-- | module/plugins/hoster/FileserveCom.py | 8 |
1 files changed, 4 insertions, 4 deletions
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()
|