diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-09-27 01:38:32 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-09-27 01:38:32 +0200 |
commit | 0d220d634e512d89bda540f91c643b361c82ea8a (patch) | |
tree | 198e2be046a1d6fdbbec0b7c44f1d5563f327528 /module/plugins/hoster/Keep2shareCC.py | |
parent | Better dead plugin fallback (diff) | |
download | pyload-0d220d634e512d89bda540f91c643b361c82ea8a.tar.xz |
Logging string cosmetics
Diffstat (limited to 'module/plugins/hoster/Keep2shareCC.py')
-rw-r--r-- | module/plugins/hoster/Keep2shareCC.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/Keep2shareCC.py b/module/plugins/hoster/Keep2shareCC.py index c1ec66435..78d6aaba7 100644 --- a/module/plugins/hoster/Keep2shareCC.py +++ b/module/plugins/hoster/Keep2shareCC.py @@ -52,7 +52,7 @@ class Keep2shareCC(SimpleHoster): m = re.search(self.WAIT_PATTERN, self.html) if m: - self.logDebug('Hoster told us to wait for %s' % m.group(1)) + self.logDebug("Hoster told us to wait for %s" % m.group(1)) # string to time convert courtesy of https://stackoverflow.com/questions/10663720 ftr = [3600, 60, 1] wait_time = sum([a * b for a, b in zip(ftr, map(int, m.group(1).split(':')))]) @@ -62,7 +62,7 @@ class Keep2shareCC(SimpleHoster): m = re.search(self.ALREADY_DOWNLOADING_PATTERN, self.html) if m: # if someone is already downloading on our line, wait 30min and retry - self.logDebug('Already downloading, waiting for 30 minutes') + self.logDebug("Already downloading, waiting for 30 minutes") self.wait(30 * 60, reconnect=True) self.retry() @@ -89,14 +89,14 @@ class Keep2shareCC(SimpleHoster): self.correctCaptcha() break else: - self.logInfo('Wrong captcha') + self.logInfo("Wrong captcha") self.invalidCaptcha() else: self.fail("All captcha attempts failed") def startDownload(self, url): d = urljoin(self.base_url, url) - self.logDebug('Direct Link: ' + d) + self.logDebug("Direct Link: " + d) self.download(d, disposition=True) def sanitize_url(self): |