From fd31175d70c8ac9aa7718f69b579bf7cf0869b81 Mon Sep 17 00:00:00 2001 From: Lauren Liberda Date: Wed, 9 Jun 2021 01:56:07 +0200 Subject: [PATCH] more opengraph/json-ld metadata --- webroot/watch.shs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/webroot/watch.shs b/webroot/watch.shs index 9375849..68d51dd 100755 --- a/webroot/watch.shs +++ b/webroot/watch.shs @@ -77,6 +77,20 @@ if [[ "${get_data[v]}" ]]; then strings[title]=$(jq -r '.title' <<< "$video") if [[ ${cfg[template]} == 'default' ]]; then meta[title]="${strings[title]}" + meta[description]="$(jq -r '.description' <<< "$video")" + meta[unsafe]=" + + + + "'' source templates/head.sh fi formats=$(jq '.formats' <<< "$video")