summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-18 20:04:36 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-18 20:04:36 +0200
commit9e5d813d7721e351ac02ba72bdc473a7d77ba6b7 (patch)
tree1a5167cea6492283bfb679c4efdb4c13534d844f /module/plugins/internal/SimpleHoster.py
parentReorder some functions (diff)
downloadpyload-9e5d813d7721e351ac02ba72bdc473a7d77ba6b7.tar.xz
Code cosmetics
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r--module/plugins/internal/SimpleHoster.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 772e6ea2f..93008f16d 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -12,8 +12,8 @@ import urlparse
from module.PyFile import statusMap as _statusMap
from module.network.HTTPRequest import BadHeader
-from module.network.RequestFactory import getURL
-from module.plugins.internal.Hoster import Hoster, parse_fileInfo, create_getInfo
+from module.network.RequestFactory import getURL as get_url
+from module.plugins.internal.Hoster import Hoster, create_getInfo, parse_fileInfo
from module.plugins.internal.Plugin import Fail, Retry, replace_patterns, set_cookies
from module.utils import fixup, fs_encode, parseFileSize as parse_size
@@ -136,7 +136,7 @@ class SimpleHoster(Hoster):
elif info['status'] is 3:
try:
- html = getURL(url, cookies=cls.COOKIES, decode=cls.TEXT_ENCODING)
+ html = get_url(url, cookies=cls.COOKIES, decode=cls.TEXT_ENCODING)
except BadHeader, e:
info['error'] = "%d: %s" % (e.code, e.content)
@@ -322,7 +322,7 @@ class SimpleHoster(Hoster):
except Exception:
pass
- self.log_warning("Check result: " + errmsg, "Waiting 1 minute and retry")
+ self.log_warning(_("Check result: ") + errmsg, _("Waiting 1 minute and retry"))
self.want_reconnect = True
self.retry(wait_time=60, reason=errmsg)
else: