fix discord thumbnails
Marco Andronaco andronacomarco@gmail.com
Wed, 23 Aug 2023 14:57:11 +0200
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
fxyoutube/templates/base.html
→
fxyoutube/templates/base.html
@@ -19,12 +19,11 @@ <meta property="twitter:creator" content="{{ info['uploader'] }}" />
<meta property="twitter:title" content="{{ info['title'] }}" /> <meta http-equiv="refresh" content="0;url={{ base_url }}{{ info['id'] }}" /> <meta property="og:url" content="{{ base_url }}{{ info['id'] }}" /> - <meta property="og:image" content="https://i.ytimg.com/vi_webp/{{ info['id'] }}/maxresdefault.webp" /> - <meta property="twitter:image" content="https://i.ytimg.com/vi_webp/{{ info['id'] }}/maxresdefault.webp" /> <meta property="og:title" content="{{ info['title'] }}" /> <meta property="og:description" content="{{ info['description'] }}" /> <meta property="og:site_name" content="FixYouTube ({{ info['uploader'] }})" /> {% if info['url'] %} + <meta property="twitter:image" content="0" /> <meta property="twitter:player:stream:content_type" content="video/mp4" /> <meta property="twitter:player:height" content="{{ info['height'] }}" /> <meta property="twitter:player:width" content="{{ info['width'] }}" />@@ -34,5 +33,8 @@ <meta property="og:video:height" content="{{ info['height'] }}" />
<meta property="og:video:width" content="{{ info['width'] }}" /> <meta property="og:video:duration" content="{{ info['duration'] }}"> <meta property="og:video:type" content="video/mp4" /> + {% else %} + <meta property="og:image" content="https://i.ytimg.com/vi_webp/{{ info['id'] }}/maxresdefault.webp" /> + <meta property="twitter:image" content="https://i.ytimg.com/vi_webp/{{ info['id'] }}/maxresdefault.webp" /> {% endif %} </head><body></body></html>