summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RPNetBiz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-17 18:59:20 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:42:40 +0200
commit20b6a2ec022202b0efb6cb69415239fb8f4d1445 (patch)
treefdbb3ad42854144b1cace0221145a472b36ef84d /module/plugins/hoster/RPNetBiz.py
parentSpare code cosmetics (diff)
downloadpyload-20b6a2ec022202b0efb6cb69415239fb8f4d1445.tar.xz
Spare code cosmetics (2)
Diffstat (limited to 'module/plugins/hoster/RPNetBiz.py')
-rw-r--r--module/plugins/hoster/RPNetBiz.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/hoster/RPNetBiz.py b/module/plugins/hoster/RPNetBiz.py
index d783e1b8f..47f18afff 100644
--- a/module/plugins/hoster/RPNetBiz.py
+++ b/module/plugins/hoster/RPNetBiz.py
@@ -26,7 +26,7 @@ class RPNetBiz(MultiHoster):
def handlePremium(self, pyfile):
user, data = self.account.selectAccount()
- # Get the download link
+ #: Get the download link
res = self.load("https://premium.rpnet.biz/client_api.php",
get={"username": user,
"password": data['password'],
@@ -34,15 +34,15 @@ class RPNetBiz(MultiHoster):
"links" : pyfile.url})
self.logDebug("JSON data: %s" % res)
- link_status = json_loads(res)['links'][0] # get the first link... since we only queried one
+ link_status = json_loads(res)['links'][0] #: get the first link... since we only queried one
- # Check if we only have an id as a HDD link
+ #: Check if we only have an id as a HDD link
if 'id' in link_status:
self.logDebug("Need to wait at least 30 seconds before requery")
- self.setWait(30) # wait for 30 seconds
+ self.setWait(30) #: wait for 30 seconds
self.wait()
- # Lets query the server again asking for the status on the link,
- # we need to keep doing this until we reach 100
+ #: 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
my_try = 0
while (my_try <= max_tries):
@@ -66,7 +66,7 @@ class RPNetBiz(MultiHoster):
self.wait()
my_try += 1
- if my_try > max_tries: # We went over the limit!
+ if my_try > max_tries: #: We went over the limit!
self.fail(_("Waited for about 15 minutes for download to finish but failed"))
if 'generated' in link_status: