all repos — FixYouTube-legacy @ e21d9119ec75e0c9ad9823a32488807d4dd5159b

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

fxyoutube/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'] }} ({{ info['uploader_id'] }})" />
19    <meta property="twitter:title" content="{{ info['title'] }}" />
20    <meta http-equiv="refresh" content="0;url={{ base_url }}{{ info['id'] }}" />
21    {% if info['url'] != "" %}
22    <meta property="twitter:player:stream:content_type" content="video/mp4" />
23    <meta property="twitter:player:height" content="{{ info['height'] }}" />
24    <meta property="twitter:player:width" content="{{ info['width'] }}" />
25    <meta property="og:video" content="/proxy/{{ info['id'] }}" />
26    <meta property="og:video:secure_url" content="/proxy/{{ info['id'] }}" />
27    <meta property="og:video:height" content="{{ info['height'] }}" />
28    <meta property="og:video:width" content="{{ info['width'] }}" />
29    <meta property="og:video:duration" content="{{ info['duration'] }}">
30    <meta property="og:video:type" content="video/mp4" />
31    {% endif %}
32    <meta property="twitter:image" content="0" />
33    <meta property="og:title" content="{{ info['title'] }}" />
34    <meta property="og:description" content="{{ info['description'] }}" />
35    <meta property="og:site_name" content="FixYouTube ({{ info['uploader'] }})" />
36</head><body></body></html>