all repos — FixYouTube-legacy @ 5e703053115a838fbc8984de5e6c4cbffe526ba5

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

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['videoId'] }}" />
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['videoId'] }}" />
21    <meta property="og:url" content="{{ base_url }}{{ info['videoId'] }}" />
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    <meta property="twitter:image" content="0" />
26    <meta property="twitter:player:stream:content_type" content="video/mp4" />
27    <meta property="twitter:player:height" content="{{ info['height'] }}" />
28    <meta property="twitter:player:width" content="{{ info['width'] }}" />
29    <meta property="og:video" content="/proxy/{{ info['videoId'] }}" />
30    <meta property="og:video:secure_url" content="/proxy/{{ info['videoId'] }}" />
31    <meta property="og:video:height" content="{{ info['height'] }}" />
32    <meta property="og:video:width" content="{{ info['width'] }}" />
33    <meta property="og:video:duration" content="{{ info['duration'] }}">
34    <meta property="og:video:type" content="video/mp4" />
35</head><body></body></html>