mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
[postprocessor/ffmpeg] Fix metadata filename handling on Python 2
Fixes #13182
This commit is contained in:
parent
e834f04400
commit
5192ee17e7
@ -1,3 +1,9 @@
|
|||||||
|
version <unreleased>
|
||||||
|
|
||||||
|
Core
|
||||||
|
* [postprocessor/ffmpeg] Fix metadata filename handling on Python 2 (#13182)
|
||||||
|
|
||||||
|
|
||||||
version 2017.05.23
|
version 2017.05.23
|
||||||
|
|
||||||
Core
|
Core
|
||||||
|
@ -444,7 +444,7 @@ def add(meta_list, info_list=None):
|
|||||||
|
|
||||||
chapters = info.get('chapters', [])
|
chapters = info.get('chapters', [])
|
||||||
if 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:
|
with io.open(metadata_filename, 'wt', encoding='utf-8') as f:
|
||||||
def ffmpeg_escape(text):
|
def ffmpeg_escape(text):
|
||||||
return re.sub(r'(=|;|#|\\|\n)', r'\\\1', text)
|
return re.sub(r'(=|;|#|\\|\n)', r'\\\1', text)
|
||||||
|
Loading…
Reference in New Issue
Block a user