test/lib/video: Fill in href attributes of video shortcuts

...so that they can be indexed.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-03-15 03:43:39 +01:00
parent e5eefe7743
commit 700ce1f875

View file

@ -141,7 +141,7 @@ video_time_now() {
video_link() { video_link() {
[ ${VIDEO_LINKS_COUNT} -eq 0 ] && __sep="" || __sep=" |" [ ${VIDEO_LINKS_COUNT} -eq 0 ] && __sep="" || __sep=" |"
__id="video_link_${VIDEO_LINKS_COUNT}" __id="video_link_${VIDEO_LINKS_COUNT}"
video_append_links "${__sep} <a id=\"${__id}\">${1}</a>" video_append_links "${__sep} <a id=\"${__id}\" href=\"${1}\">${1}</a>"
video_append_links_js "[ '${__id}', $(($(video_time_now) - 1)) ]," video_append_links_js "[ '${__id}', $(($(video_time_now) - 1)) ],"
VIDEO_LINKS_COUNT=$((VIDEO_LINKS_COUNT + 1)) VIDEO_LINKS_COUNT=$((VIDEO_LINKS_COUNT + 1))