Escape summary and title, and match audio playback to waveform image

This commit is contained in:
2025-08-01 14:20:23 +02:00
parent 31986b3ea6
commit 274dfb7dba

View File

@@ -1183,7 +1183,7 @@ ${media_file_mime}
</pre>
<p>
<audio controls=\"\" preload=\"none\" style=\"width:600px;\" >
<audio controls=\"\" preload=\"none\" style=\"width:800px;\" >
<source src=\"${media}\" type=\"${media_file_mime_type}\">
</audio>
<br />
@@ -1280,7 +1280,8 @@ function post_show_to_hpr_db() {
fi
notes="$( cat "${shownotes_edited}" | jq --slurp --raw-input @uri | sed -e 's/%0A"$//g' -e 's/^"//g' )"
host_profile_encoded="$( echo "${host_profile}" | jq --slurp --raw-input @uri | sed -e 's/%0A"$//g' -e 's/^"//g' )"
title_encoded="$( echo "${title}" | jq --slurp --raw-input @uri | sed -e 's/%0A"$//g' -e 's/^"//g' )"
summary_encoded="$( echo "${summary}" | jq --slurp --raw-input @uri | sed -e 's/%0A"$//g' -e 's/^"//g' )"
post_show_json="${working_dir}/post_show.json"
@@ -1289,9 +1290,9 @@ function post_show_to_hpr_db() {
ep_num=${ep_num}
ep_date=${ep_date}
email=${email_padded}
title=${title}
title=${title_encoded}
duration=${duration}
summary=${summary}
summary=${summary_encoded}
series_id=${series_id}
series_name=${series_name}
explicit=${explicit}
@@ -1308,9 +1309,9 @@ function post_show_to_hpr_db() {
\"ep_num\": \"${ep_num}\",
\"ep_date\": \"${ep_date}\",
\"email\": \"${email_padded}\",
\"title\": \"${title}\",
\"title\": \"${title_encoded}\",
\"duration\": \"${duration}\",
\"summary\": \"${summary}\",
\"summary\": \"${summary_encoded}\",
\"series_id\": \"${series_id}\",
\"series_name\": \"${series_name}\",
\"explicit\": \"${explicit}\",
@@ -1711,7 +1712,7 @@ function generate_final_report() {
$( echo "${synopsis}" )
</p>
<p>
<audio controls=\"\" preload=\"none\" style=\"width:600px;\" >
<audio controls=\"\" preload=\"none\" style=\"width:800px;\" >
<source src=\"${episode_tts_flac}\" type=\"audio/flac\">
</audio>
<br />
@@ -1774,7 +1775,7 @@ $( cat "${working_dir}/hpr${ep_num}_${this_file_extension_to_check}_ffprobe.txt"
</pre>
<p>
<audio controls=\"\" preload=\"none\" style=\"width:600px;\" >
<audio controls=\"\" preload=\"none\" style=\"width:800px;\" >
<source src=\"${working_dir}/hpr${ep_num}.${this_file_extension_to_check}\" type=\"${this_file_mime_type}\">
</audio>
<br />