mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-05 06:42:53 +08:00
Merge branch 'master' of https://github.com/rg3/youtube-dl
This commit is contained in:
commit
fa4df09346
@ -409,7 +409,10 @@ def encodeFilename(s):
|
||||
# match Windows 9x series as well. Besides, NT 4 is obsolete.)
|
||||
return s
|
||||
else:
|
||||
return s.encode(sys.getfilesystemencoding(), 'ignore')
|
||||
encoding = sys.getfilesystemencoding()
|
||||
if encoding is None:
|
||||
encoding = 'utf-8'
|
||||
return s.encode(encoding, 'ignore')
|
||||
|
||||
|
||||
class ExtractorError(Exception):
|
||||
|
Loading…
Reference in New Issue
Block a user