summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hooks/Captcha9kw.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-28 21:19:03 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-28 21:19:03 +0200
commit46c6fc74a4e423927554f024b78dbbbf33e982cd (patch)
treee7ff9580bb5e80b91e2bd9609409116a19c5941e /pyload/plugins/hooks/Captcha9kw.py
parentApi : Add brackets and pipe to urlmatcher (diff)
parent[XFileSharingPro] Fixed typo (diff)
downloadpyload-46c6fc74a4e423927554f024b78dbbbf33e982cd.tar.xz
Merge branch 'stable' into 0.4.10
Conflicts: pyload/plugins/crypter/MultiuploadCom.py pyload/plugins/crypter/SerienjunkiesOrg.py pyload/plugins/hooks/ExternalScripts.py pyload/plugins/hooks/ExtractArchive.py pyload/plugins/hooks/MergeFiles.py pyload/plugins/hoster/CatShareNet.py pyload/plugins/hoster/FilezyNet.py pyload/plugins/hoster/IFileWs.py pyload/plugins/hoster/PremiumTo.py pyload/plugins/hoster/SpeedyshareCom.py pyload/plugins/hoster/UptoboxCom.py pyload/plugins/hoster/XFileSharingPro.py pyload/plugins/hoster/ZippyshareCom.py
Diffstat (limited to 'pyload/plugins/hooks/Captcha9kw.py')
-rw-r--r--pyload/plugins/hooks/Captcha9kw.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugins/hooks/Captcha9kw.py b/pyload/plugins/hooks/Captcha9kw.py
index fcb5dd7c1..f8de28710 100644
--- a/pyload/plugins/hooks/Captcha9kw.py
+++ b/pyload/plugins/hooks/Captcha9kw.py
@@ -58,7 +58,7 @@ class Captcha9kw(Hook):
with open(task.captchaFile, 'rb') as f:
data = f.read()
data = b64encode(data)
- self.logDebug("%s : %s" % (task.captchaFile, data))
+ self.logDebug(task.captchaFile, data)
if task.isPositional():
mouse = 1
else:
@@ -93,10 +93,10 @@ class Captcha9kw(Hook):
result = response2
task.data['ticket'] = response
- self.logInfo("result %s : %s" % (response, result))
+ self.logInfo(_("Result %s : %s") % (response, result))
task.setResult(result)
else:
- self.logError("Bad upload: %s" % response)
+ self.logError(_("Bad upload"), response)
return False
def newCaptchaTask(self, task):
@@ -129,12 +129,12 @@ class Captcha9kw(Hook):
"pyload": "1",
"source": "pyload",
"id": task.data['ticket']})
- self.logInfo("Request correct: %s" % response)
+ self.logInfo(_("Request correct", response)
except BadHeader, e:
- self.logError("Could not send correct request.", str(e))
+ self.logError(_("Could not send correct request."), e)
else:
- self.logError("No CaptchaID for correct request (task %s) found." % task)
+ self.logError(_("No CaptchaID for correct request (task %s) found.") % task)
def captchaInvalid(self, task):
if "ticket" in task.data:
@@ -148,9 +148,9 @@ class Captcha9kw(Hook):
"pyload": "1",
"source": "pyload",
"id": task.data['ticket']})
- self.logInfo("Request refund: %s" % response)
+ self.logInfo(_("Request refund", response)
except BadHeader, e:
- self.logError("Could not send refund request.", str(e))
+ self.logError(_("Could not send refund request."), e)
else:
- self.logError("No CaptchaID for not correct request (task %s) found." % task)
+ self.logError(_("No CaptchaID for not correct request (task %s) found.") % task)