future-proof video template
Marco Andronaco andronacomarco@gmail.com
Sat, 13 Jan 2024 15:41:56 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
templates/video.html
→
templates/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 }}">