minor bugfixes

bugs due to be2fc5b212, e9f4ccd19e
This commit is contained in:
pukkandan 2021-08-11 13:42:23 +05:30
parent 5a64127f94
commit a8731fcc1d
3 changed files with 7 additions and 7 deletions

View file

@ -592,7 +592,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
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)
return re.sub(r'([\\=;#\n])', r'\\\1', text)
metadata_file_content = ';FFMETADATA1\n'
for chapter in chapters: