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:
parent
4cfe3f7a08
commit
ce5d4ab927
1 changed files with 2 additions and 2 deletions
|
@ -211,9 +211,9 @@ def enqueue_job(event):
|
||||||
|
|
||||||
event_title = str(event['title'])
|
event_title = str(event['title'])
|
||||||
event_personnames = str(event['personnames'])
|
event_personnames = str(event['personnames'])
|
||||||
event_title = event_title.replace('"', '')
|
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 = fit_title(event_title)
|
||||||
t = t.replace(':', "\:") # the ffmpeg command needs colons to be escaped
|
t = t.replace(':', "\:") # the ffmpeg command needs colons to be escaped
|
||||||
|
|
Loading…
Add table
Reference in a new issue