diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-04 00:30:37 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-04 00:30:37 +0600 |
commit | ff556f5c09ec8700bb012a58a5e39505b887b774 (patch) | |
tree | 110258f20226ef048a06c5437bd46e707fd38661 /youtube_dl/options.py | |
parent | 16fa01291bd94703e2258a68bef1491d57f0dabc (diff) |
Do not encode outtmpl twice (Closes #5288)
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r-- | youtube_dl/options.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 35c7e5fb3..8e80e3759 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -13,6 +13,7 @@ from .compat import ( compat_kwargs, ) from .utils import ( + preferredencoding, write_string, ) from .version import __version__ @@ -797,7 +798,7 @@ def parseOpts(overrideArguments=None): # Workaround for Python 2.x, where argv is a byte list if sys.version_info < (3,): command_line_conf = [ - a.decode('utf-8', 'replace') for a in command_line_conf] + a.decode(preferredencoding(), 'replace') for a in command_line_conf] if '--ignore-config' in command_line_conf: system_conf = [] |