summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RapidgatorNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/RapidgatorNet.py')
-rw-r--r--module/plugins/hoster/RapidgatorNet.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/RapidgatorNet.py b/module/plugins/hoster/RapidgatorNet.py
index f0acfd04e..8db84340b 100644
--- a/module/plugins/hoster/RapidgatorNet.py
+++ b/module/plugins/hoster/RapidgatorNet.py
@@ -67,7 +67,7 @@ class RapidgatorNet(SimpleHoster):
status = json['response_status']
msg = json['response_details']
except BadHeader, e:
- self.logError("API:%s" % cmd, e, "SID: %s" % self.sid)
+ self.logError("API: %s" % cmd, repr(e), "SID: %s" % self.sid)
status = e.code
msg = e
@@ -138,7 +138,7 @@ class RapidgatorNet(SimpleHoster):
else:
self.correctCaptcha()
else:
- self.error("Download link")
+ self.error(_("Download link"))
def getCaptcha(self):
@@ -157,7 +157,7 @@ class RapidgatorNet(SimpleHoster):
captcha_key = m.group(1)
captcha = SolveMedia(self)
else:
- self.error("Captcha")
+ self.error(_("Captcha"))
return captcha, captcha_key
@@ -165,7 +165,7 @@ class RapidgatorNet(SimpleHoster):
def checkFree(self):
m = re.search(self.PREMIUM_ONLY_ERROR_PATTERN, self.html)
if m:
- self.fail("Premium account needed for download")
+ self.fail(_("Premium account needed for download"))
else:
m = re.search(self.WAIT_PATTERN, self.html)
@@ -176,7 +176,7 @@ class RapidgatorNet(SimpleHoster):
if m is None:
return
elif m.group(1) == "daily":
- self.logWarning("You have reached your daily downloads limit for today")
+ self.logWarning(_("You have reached your daily downloads limit for today"))
wait_time = secondsToMidnight(gmt=2)
else:
wait_time = 1 * 60 * 60