[postprocessor/ffmpeg] Fix metadata filename handling on Python 2
[youtube-dl] / youtube_dl / postprocessor / ffmpeg.py
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)