youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit afc7bc33cb8dc63a5e3495e7e11b47f84d89be23
parent 168da92b9a1509d11fdbe505109b8eff77819602
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Tue,  7 Jan 2014 06:49:15 +0100

[xattr] Always use UTF-8

On Windows and other systems, other encodings would break when trying to encode non-ASCII characters.
Simply use UTF-8, like every sane system.

Diffstat:
Myoutube_dl/postprocessor/xattrpp.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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