diff options
author | 2015-09-29 22:43:17 +0200 | |
---|---|---|
committer | 2015-09-29 22:43:17 +0200 | |
commit | 3353ea228835ffa96cc73d5b5e23f6d92ba84203 (patch) | |
tree | c593079745e1a65c39bfa59b3a3b6a07e1b05486 /module/plugins/hoster/RPNetBiz.py | |
parent | [OpenloadIo] Cleanup (diff) | |
download | pyload-3353ea228835ffa96cc73d5b5e23f6d92ba84203.tar.xz |
Update hoster plugins
Diffstat (limited to 'module/plugins/hoster/RPNetBiz.py')
-rw-r--r-- | module/plugins/hoster/RPNetBiz.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/RPNetBiz.py b/module/plugins/hoster/RPNetBiz.py index 62e6bee4e..5207832ee 100644 --- a/module/plugins/hoster/RPNetBiz.py +++ b/module/plugins/hoster/RPNetBiz.py @@ -44,10 +44,10 @@ class RPNetBiz(MultiHoster): self.wait(30) #: Wait for 30 seconds #: Lets query the server again asking for the status on the link, #: We need to keep doing this until we reach 100 - max_tries = 30 + attemps = 30 my_try = 0 - while (my_try <= max_tries): - self.log_debug("Try: %d ; Max Tries: %d" % (my_try, max_tries)) + while (my_try <= attemps): + self.log_debug("Try: %d ; Max Tries: %d" % (my_try, attemps)) res = self.load("https://premium.rpnet.biz/client_api.php", get={'username': user, 'password': info['login']['password'], @@ -66,7 +66,7 @@ class RPNetBiz(MultiHoster): self.wait(30) my_try += 1 - if my_try > max_tries: #: We went over the limit! + if my_try > attemps: #: We went over the limit! self.fail(_("Waited for about 15 minutes for download to finish but failed")) if 'generated' in link_status: |