Browse Source
[postprocessor/ffmpeg] Fix metadata filename handling on Python 2
Fixes #13182
master
Yen Chi Hsuan
8 years ago
No known key found for this signature in database
GPG Key ID: 7F902A182457CA23
2 changed files with
7 additions and
1 deletions
-
ChangeLog
-
youtube_dl/postprocessor/ffmpeg.py
|
|
@ -1,3 +1,9 @@ |
|
|
|
version <unreleased> |
|
|
|
|
|
|
|
Core |
|
|
|
* [postprocessor/ffmpeg] Fix metadata filename handling on Python 2 (#13182) |
|
|
|
|
|
|
|
|
|
|
|
version 2017.05.23 |
|
|
|
|
|
|
|
Core |
|
|
|
|
|
@ -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) |
|
|
|