summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/LinkdecrypterCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-26 02:31:54 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-26 02:31:54 +0200
commit9f2ebe486a3e155fb6a60e07cccb77ab6a772eb2 (patch)
tree3b7b96651b12a2fb4765a3961a19bf3c67d4b64f /module/plugins/crypter/LinkdecrypterCom.py
parentAvoid gettext conflict due variable `_` (diff)
downloadpyload-9f2ebe486a3e155fb6a60e07cccb77ab6a772eb2.tar.xz
Extend translation support in plugins + a lot of code cosmetics and typo fixes
Diffstat (limited to 'module/plugins/crypter/LinkdecrypterCom.py')
-rw-r--r--module/plugins/crypter/LinkdecrypterCom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/crypter/LinkdecrypterCom.py b/module/plugins/crypter/LinkdecrypterCom.py
index 8731d1d0f..0848338ec 100644
--- a/module/plugins/crypter/LinkdecrypterCom.py
+++ b/module/plugins/crypter/LinkdecrypterCom.py
@@ -29,7 +29,7 @@ class LinkdecrypterCom(Crypter):
# API not working anymore
self.urls = self.decryptHTML()
if not self.urls:
- self.fail("Could not extract any links")
+ self.fail(_("Could not extract any links"))
def decryptAPI(self):
@@ -46,7 +46,7 @@ class LinkdecrypterCom(Crypter):
self.logError("API", self.html)
if self.html == 'INTERRUPTION(PASSWORD)':
- self.fail("No or incorrect password")
+ self.fail(_("No or incorrect password"))
return None
@@ -69,7 +69,7 @@ class LinkdecrypterCom(Crypter):
m = re.search(r"<p><i><b>([^<]+)</b></i></p>", self.html)
msg = m.group(1) if m else ""
- self.logInfo("Captcha protected link", result_type, msg)
+ self.logInfo(_("Captcha protected link"), result_type, msg)
captcha = self.decryptCaptcha(captcha_url, result_type=result_type)
if result_type == "positional":
@@ -80,10 +80,10 @@ class LinkdecrypterCom(Crypter):
elif self.PASSWORD_PATTERN in self.html:
if self.passwords:
password = self.passwords.pop(0)
- self.logInfo("Password protected link, trying " + password)
+ self.logInfo(_("Password protected link, trying ") + password)
self.html = self.load('http://linkdecrypter.com/', post={'password': password}, decode=True)
else:
- self.fail("No or incorrect password")
+ self.fail(_("No or incorrect password"))
else:
retries -= 1