all repos — fixyoutube-go @ 478e9f188969ba9b95c3eab2f0602c53792bfb7b

A better way to embed YouTube videos everywhere (inspired by FixTweet).

future-proof video template
Marco Andronaco andronacomarco@gmail.com
Sat, 13 Jan 2024 15:41:56 +0100
commit

478e9f188969ba9b95c3eab2f0602c53792bfb7b

parent

467b10906293eb85238d02c16a7fb0b434363987

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M templates/video.htmltemplates/video.html

@@ -11,7 +11,6 @@ <html lang="en"><head>

<link rel="canonical" href="https://www.youtube.com/watch?v={{ .VideoId }}" /> <meta http-equiv="refresh" content="0;url=https://www.youtube.com/watch?v={{ .VideoId }}" /> <meta property="og:url" content="https://www.youtube.com/watch?v={{ .VideoId }}" /> - {{ if .Url }} <meta property="theme-color" content="0000FF" /> <meta property="twitter:card" content="player" /> <meta property="twitter:site" content="{{ .Uploader }}" />

@@ -22,6 +21,7 @@ <meta property="og:description" content="{{ .Description }}" />

<meta property="og:site_name" content="FixYouTube ({{ .Uploader }})" /> <meta property="twitter:image" content="0" /> <meta property="twitter:player:stream:content_type" content="video/mp4" /> + {{ if .Url }} <meta property="og:video" content="/proxy/{{ .VideoId }}" /> <meta property="og:video:secure_url" content="/proxy/{{ .VideoId }}" /> <meta property="og:video:duration" content="{{ .Duration }}">