summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RapidshareCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-10-23 13:03:37 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-10-23 13:03:37 +0200
commit29a62c4b9886d31bfa4b5e70db44eb59330bbe28 (patch)
tree47bb81dfb3eba95944dbf1efeb1096477cad8c4e /module/plugins/hoster/RapidshareCom.py
parentNCryptIn: better folder name detect (diff)
parentHosters: replaced line continuation with brackets (diff)
downloadpyload-29a62c4b9886d31bfa4b5e70db44eb59330bbe28.tar.xz
Merge pull request #331 from vuolter/s/hoster_lc
Hosters: replace line continuation with brackets
Diffstat (limited to 'module/plugins/hoster/RapidshareCom.py')
-rw-r--r--module/plugins/hoster/RapidshareCom.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py
index 9d40b867f..9828bf4ce 100644
--- a/module/plugins/hoster/RapidshareCom.py
+++ b/module/plugins/hoster/RapidshareCom.py
@@ -171,8 +171,7 @@ class RapidshareCom(Hoster):
elif int(self.api_data["status"]) > 50:
self.api_data["status"] = str(int(self.api_data["status"]) - 50)
- self.api_data["mirror"] = \
- "http://rs%(serverid)s%(shorthost)s.rapidshare.com/files/%(fileid)s/%(filename)s" % self.api_data
+ self.api_data["mirror"] = "http://rs%(serverid)s%(shorthost)s.rapidshare.com/files/%(fileid)s/%(filename)s" % self.api_data
def freeWait(self):
"""downloads html with the important information
@@ -195,8 +194,8 @@ class RapidshareCom(Hoster):
self.setWait(60)
self.logInfo(_("Already downloading from this ip address, waiting 60 seconds"))
self.wait()
- elif "Too many users downloading from this server right now" in result or \
- "All free download slots are full" in result:
+ elif ("Too many users downloading from this server right now" in result or
+ "All free download slots are full" in result):
self.setWait(120)
self.logInfo(_("RapidShareCom: No free slots"))
self.wait()