projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not encode outtmpl twice (Closes #5288)
[youtube-dl]
/
youtube_dl
/
options.py
diff --git
a/youtube_dl/options.py
b/youtube_dl/options.py
index 35c7e5fb3507f5e846e166c5f6c15f6cf637498a..8e80e3759410ed18afa3a1c432c53e0785d90b51 100644
(file)
--- a/
youtube_dl/options.py
+++ b/
youtube_dl/options.py
@@
-13,6
+13,7
@@
from .compat import (
compat_kwargs,
)
from .utils import (
compat_kwargs,
)
from .utils import (
+ preferredencoding,
write_string,
)
from .version import __version__
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 = [
# 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 = []
if '--ignore-config' in command_line_conf:
system_conf = []