make-ffmpeg: Allow quotes in title and author

When double-escaped, the double quotes won't break anything and will be
rendered in the output.
This commit is contained in:
Jannik Beyerstedt 2023-04-09 09:25:34 +02:00
parent 4cfe3f7a08
commit ce5d4ab927

View file

@ -211,9 +211,9 @@ def enqueue_job(event):
event_title = str(event['title'])
event_personnames = str(event['personnames'])
event_title = event_title.replace('"', '')
event_title = event_title.replace('"', '\\"')
event_title = event_title.replace('\'', '')
event_personnames = event_personnames.replace('"', '')
event_personnames = event_personnames.replace('"', '\\"')
t = fit_title(event_title)
t = t.replace(':', "\:") # the ffmpeg command needs colons to be escaped