From: Yen Chi Hsuan Date: Thu, 25 May 2017 14:04:12 +0000 (+0800) Subject: [postprocessor/ffmpeg] Fix metadata filename handling on Python 2 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=5192ee17e79ec103abf1e5a06faa0b0019ab00f2;p=youtube-dl.git [postprocessor/ffmpeg] Fix metadata filename handling on Python 2 Fixes #13182 --- diff --git a/ChangeLog b/ChangeLog index 75a95f0b0..9e4f53093 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +version + +Core +* [postprocessor/ffmpeg] Fix metadata filename handling on Python 2 (#13182) + + version 2017.05.23 Core diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index c91ec8588..f021ea8fd 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -444,7 +444,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor): chapters = info.get('chapters', []) if chapters: - metadata_filename = encodeFilename(replace_extension(filename, 'meta')) + metadata_filename = replace_extension(filename, 'meta') with io.open(metadata_filename, 'wt', encoding='utf-8') as f: def ffmpeg_escape(text): return re.sub(r'(=|;|#|\\|\n)', r'\\\1', text)