[postprocessor/ffmpeg] Fix metadata filename handling on Python 2
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 25 May 2017 14:04:12 +0000 (22:04 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 25 May 2017 14:07:03 +0000 (22:07 +0800)
Fixes #13182

ChangeLog
youtube_dl/postprocessor/ffmpeg.py

index 75a95f0b08c17209ae226b1b1e678a42009f6eed..9e4f53093a18cdd2cc0e2c4a71431bd1ec40a5fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Core
+* [postprocessor/ffmpeg] Fix metadata filename handling on Python 2 (#13182)
+
+
 version 2017.05.23
 
 Core
index c91ec8588ed5965cc13ecc95503e43aeb2ca081c..f021ea8fdc50fa3af5613f32754de14979f1797d 100644 (file)
@@ -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)