summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UlozTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/UlozTo.py')
-rw-r--r--module/plugins/hoster/UlozTo.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py
index 5725d84fc..43398772c 100644
--- a/module/plugins/hoster/UlozTo.py
+++ b/module/plugins/hoster/UlozTo.py
@@ -50,11 +50,11 @@ class UlozTo(SimpleHoster):
self.html = self.load(pyfile.url, decode=True, cookies=True)
if re.search(self.ADULT_PATTERN, self.html):
- self.logInfo("Adult content confirmation needed. Proceeding..")
+ self.logInfo(_("Adult content confirmation needed"))
m = re.search(self.TOKEN_PATTERN, self.html)
if m is None:
- self.error("TOKEN")
+ self.error(_("TOKEN_PATTERN not found"))
token = m.group(1)
self.html = self.load(pyfile.url, get={"do": "askAgeForm-submit"},
@@ -64,11 +64,11 @@ class UlozTo(SimpleHoster):
while self.PASSWD_PATTERN in self.html:
if passwords:
password = passwords.pop(0)
- self.logInfo("Password protected link, trying " + password)
+ self.logInfo(_("Password protected link, trying ") + password)
self.html = self.load(pyfile.url, get={"do": "passwordProtectedForm-submit"},
post={"password": password, "password_send": 'Send'}, cookies=True)
else:
- self.fail("No or incorrect password")
+ self.fail(_("No or incorrect password"))
if re.search(self.VIPLINK_PATTERN, self.html):
self.html = self.load(pyfile.url, get={"disclaimer": "1"})
@@ -86,7 +86,7 @@ class UlozTo(SimpleHoster):
def handleFree(self):
action, inputs = self.parseHtmlForm('id="frm-downloadDialog-freeDownloadForm"')
if not action or not inputs:
- self.error("Free download form not found")
+ self.error(_("Free download form not found"))
self.logDebug("inputs.keys = " + str(inputs.keys()))
# get and decrypt captcha
@@ -112,7 +112,7 @@ class UlozTo(SimpleHoster):
inputs.update({'timestamp': data['timestamp'], 'salt': data['salt'], 'hash': data['hash'], 'captcha_value': captcha_value})
else:
- self.error("CAPTCHA form changed")
+ self.error(_("CAPTCHA form changed"))
self.multiDL = True
self.download("http://www.ulozto.net" + action, post=inputs, cookies=True, disposition=True)
@@ -125,7 +125,7 @@ class UlozTo(SimpleHoster):
def findDownloadURL(self, premium=False):
- msg = "%s link" % ("Premium" if premium else "Free")
+ msg = _("%s link" % ("Premium" if premium else "Free"))
m = re.search(self.PREMIUM_URL_PATTERN if premium else self.FREE_URL_PATTERN, self.html)
if m is None:
self.error(msg)
@@ -151,14 +151,14 @@ class UlozTo(SimpleHoster):
elif check == "offline":
self.offline()
elif check == "passwd":
- self.fail("Wrong password")
+ self.fail(_("Wrong password"))
elif check == "server_error":
- self.logError("Server error, try downloading later")
+ self.logError(_("Server error, try downloading later"))
self.multiDL = False
self.wait(1 * 60 * 60, True)
self.retry()
elif check == "not_found":
- self.fail("Server error - file not downloadable")
+ self.fail(_("Server error - file not downloadable"))
getInfo = create_getInfo(UlozTo)