A feature-rich command-line audio/video downloader
[xattr] Always use UTF-8
Philipp Hagemeisterafc7bc33cb8d
diff --git a/youtube_dl/postprocessor/xattrpp.py b/youtube_dl/postprocessor/xattrpp.pyindex 1cb8ecf1c8..4317ba8366 100644--- a/youtube_dl/postprocessor/xattrpp.py+++ b/youtube_dl/postprocessor/xattrpp.py@@ -99,7 +99,7 @@ class XAttrMetadataPP(PostProcessor):if infoname == "upload_date":value = hyphenate_date(value)- byte_value = value.encode(preferredencoding())+ byte_value = value.encode('utf-8')write_xattr(filename, xattrname, byte_value)return True, info