fixyoutube/templates/base.html (view raw)
1<!DOCTYPE html>
2<html lang="und"><!--
3
4███████ ██ ██ ██ ██ ██ ███ ██ ██ ██████ ██ ██ ██████ ███████
5██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6█████ ██ ███ ████ ██ ██ ██ ██ ██ ██ ██ ██████ █████
7██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
8██ ██ ██ ██ ██ ███ ███ ██ ███ ██████ ███████
9██
10██ A better way to embed YouTube videos on Telegram (inspired by FixTweet).
11██
12-->
13<head>
14 <link rel="canonical" href="{{ base_url }}{{ info['id'] }}" />
15 <meta property="theme-color" content="0000FF" />
16 <meta property="twitter:card" content="player" />
17 <meta property="twitter:site" content="{{ info['uploader'] }}" />
18 <meta property="twitter:creator" content="{{ info['uploader'] }}" />
19 <meta property="twitter:title" content="{{ info['title'] }}" />
20 <meta http-equiv="refresh" content="0;url={{ base_url }}{{ info['id'] }}" />
21 <meta property="og:url" content="{{ base_url }}{{ info['id'] }}" />
22 <meta property="og:title" content="{{ info['title'] }}" />
23 <meta property="og:description" content="{{ info['description'] }}" />
24 <meta property="og:site_name" content="FixYouTube ({{ info['uploader'] }})" />
25 {% if info['url'] %}
26 <meta property="twitter:image" content="0" />
27 <meta property="twitter:player:stream:content_type" content="video/mp4" />
28 <meta property="twitter:player:height" content="{{ info['height'] }}" />
29 <meta property="twitter:player:width" content="{{ info['width'] }}" />
30 <meta property="og:video" content="/proxy/{{ info['id'] }}" />
31 <meta property="og:video:secure_url" content="/proxy/{{ info['id'] }}" />
32 <meta property="og:video:height" content="{{ info['height'] }}" />
33 <meta property="og:video:width" content="{{ info['width'] }}" />
34 <meta property="og:video:duration" content="{{ info['duration'] }}">
35 <meta property="og:video:type" content="video/mp4" />
36 {% else %}
37 <meta property="og:image" content="https://i.ytimg.com/vi_webp/{{ info['id'] }}/maxresdefault.webp" />
38 <meta property="twitter:image" content="https://i.ytimg.com/vi_webp/{{ info['id'] }}/maxresdefault.webp" />
39 {% endif %}
40</head><body></body></html>