summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-07-11 21:40:29 +0200
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-07-11 21:40:29 +0200
commitd6d1b8243a5022be9bf3a438250a6e037d362f8a (patch)
treed06406e9d368c2b3ffc23a6716e96fe66f557c10 /module
parent[Hoster] fix #2538 (diff)
downloadpyload-d6d1b8243a5022be9bf3a438250a6e037d362f8a.tar.xz
[Hoster] Code cosmetics
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/Hoster.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index 1730f5ae8..8864c70f6 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -3,7 +3,6 @@
from __future__ import with_statement
import __builtin__
-import hashlib
import mimetypes
import os
import re
@@ -34,7 +33,7 @@ if not hasattr(__builtin__.property, "setter"):
class Hoster(Base):
__name__ = "Hoster"
__type__ = "hoster"
- __version__ = "0.58"
+ __version__ = "0.59"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -188,7 +187,7 @@ class Hoster(Base):
resource = location
elif code == 301 or resumable:
- self.log_debug("Redirect #%d to: %s" % (i, location))
+ self.log_debug(_("Redirect #%d to: %s") % (i, location))
header = self.load(location, just_header=True)
url = location
continue
@@ -234,7 +233,7 @@ class Hoster(Base):
except IOError, e:
self.log_error(e.message)
- self.fail("IOError %s" % e.errno)
+ self.fail(_("IOError %s") % e.errno)
except BadHeader, e:
self.req.http.code = e.code
@@ -353,7 +352,7 @@ class Hoster(Base):
content = f.read(read_size)
#: Produces encoding errors, better log to other file in the future?
- # self.log_debug("Content: %s" % content)
+ # self.log_debug(_("Content: %s") % content)
for name, rule in rules.items():
if isinstance(rule, basestring):
if rule in content: