summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/LinkSaveIn.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 01:11:29 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 01:17:03 +0200
commit4da90891eb2544ac15a7d512aba8cb357f68ee5f (patch)
tree84eec3f9f27a880df052da43fb3a6a8112b39c24 /module/plugins/crypter/LinkSaveIn.py
parentFix and improve plugins logging (diff)
downloadpyload-4da90891eb2544ac15a7d512aba8cb357f68ee5f.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/crypter/LinkSaveIn.py')
-rw-r--r--module/plugins/crypter/LinkSaveIn.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/crypter/LinkSaveIn.py b/module/plugins/crypter/LinkSaveIn.py
index e601e8173..b22d87f38 100644
--- a/module/plugins/crypter/LinkSaveIn.py
+++ b/module/plugins/crypter/LinkSaveIn.py
@@ -125,7 +125,6 @@ class LinkSaveIn(SimpleCrypter):
if self.captcha:
if "Wrong code. Please retry" in self.html:
- self.logDebug("Invalid captcha, retrying")
self.invalidCaptcha()
self.retry()
else:
@@ -140,7 +139,7 @@ class LinkSaveIn(SimpleCrypter):
elif type_ == "web":
return self.handleWebLinks()
else:
- self.error('unknown source type "%s" (this is probably a bug)' % type_)
+ self.error('Unknown source type "%s" (this is probably a bug)' % type_)
def handleWebLinks(self):
@@ -176,7 +175,7 @@ class LinkSaveIn(SimpleCrypter):
type_ = type_.lower()
self.logDebug("Seach for %s Container links" % type_.upper())
if not type_.isalnum(): # check to prevent broken re-pattern (cnl2,rsdf,ccf,dlc,web are all alpha-numeric)
- self.error('unknown container type "%s" (this is probably a bug)' % type_)
+ self.error('Unknown container type "%s" (this is probably a bug)' % type_)
pattern = r'\(\'%s_link\'\).href=unescape\(\'(.*?\.%s)\'\)' % (type_, type_)
containersLinks = re.findall(pattern, self.html)
self.logDebug("Found %d %s Container links" % (len(containersLinks), type_.upper()))