mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-10 23:32:52 +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.)
|
# match Windows 9x series as well. Besides, NT 4 is obsolete.)
|
||||||
return s
|
return s
|
||||||
else:
|
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):
|
class ExtractorError(Exception):
|
||||||
|
Loading…
Reference in New Issue
Block a user