mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-06 02:49:35 +02:00
Woooohooo! python3 youtube_dl BaW_jenozKc -t works!
This commit is contained in:
parent
e6137fd61d
commit
0f00efed4c
@ -292,6 +292,10 @@ def encodeFilename(s):
|
||||
|
||||
assert type(s) == type(u'')
|
||||
|
||||
# Python 3 has a Unicode API
|
||||
if sys.version_info >= (3, 0):
|
||||
return s
|
||||
|
||||
if sys.platform == 'win32' and sys.getwindowsversion()[0] >= 5:
|
||||
# Pass u'' directly to use Unicode APIs on Windows 2000 and up
|
||||
# (Detecting Windows NT 4 is tricky because 'major >= 4' would
|
||||
|
Loading…
Reference in New Issue
Block a user