* fixes thumbnail images in OpenGraph

merge-requests/6/head
Dominika Liberda 2021-06-18 14:19:12 +00:00
parent 2fd9175a79
commit b4d7f4e268
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ if [[ "${get_data[v]}" ]]; then
meta[title]="${strings[title]}"
meta[description]="$(jq -r '.description' <<< "$video")"
meta[unsafe]="
<meta property='og:image' content='$(jq -r '.thumbnails[-1].url' <<< "$video")'>
<meta property='og:image' content='https://i.ytimg.com/vi/${get_data[v]}/hqdefault.jpg'>
<meta property='og:type' content='video.other'>
<meta property='video:duration' content='$(jq -r '.duration' <<< "$video")'>
"'<script type="application/ld+json">'"$(jq '{