diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-26 02:31:54 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-26 02:31:54 +0200 |
commit | 9f2ebe486a3e155fb6a60e07cccb77ab6a772eb2 (patch) | |
tree | 3b7b96651b12a2fb4765a3961a19bf3c67d4b64f /module/plugins/hoster/YoutubeCom.py | |
parent | Avoid gettext conflict due variable `_` (diff) | |
download | pyload-9f2ebe486a3e155fb6a60e07cccb77ab6a772eb2.tar.xz |
Extend translation support in plugins + a lot of code cosmetics and typo fixes
Diffstat (limited to 'module/plugins/hoster/YoutubeCom.py')
-rw-r--r-- | module/plugins/hoster/YoutubeCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py index f16e9ae43..7198b6a82 100644 --- a/module/plugins/hoster/YoutubeCom.py +++ b/module/plugins/hoster/YoutubeCom.py @@ -107,7 +107,7 @@ class YoutubeCom(Hoster): "480p": 35, "720p": 22, "1080p": 37, "3072p": 38} desired_fmt = self.getConfig("fmt") if desired_fmt and desired_fmt not in self.formats: - self.logWarning("FMT %d unknown - using default." % desired_fmt) + self.logWarning(_("FMT %d unknown, using default") % desired_fmt) desired_fmt = 0 if not desired_fmt: desired_fmt = quality.get(self.getConfig("quality"), 18) @@ -124,7 +124,7 @@ class YoutubeCom(Hoster): allowed = lambda x: self.getConfig(self.formats[x][0]) streams = [x for x in streams if x[0] in self.formats and allowed(x[0])] if not streams: - self.fail("No available stream meets your preferences") + self.fail(_("No available stream meets your preferences")) fmt_dict = dict([x for x in streams if self.formats[x[0]][4] == use3d] or streams) self.logDebug("DESIRED STREAM: ITAG:%d (%s) %sfound, %sallowed" % |