all repos — FixYouTube-legacy @ a13a971a88c1b0db81a1df2db381ac58a5ce94e0

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<head>
 4    <link rel="canonical" href="{{ base_url }}{{ info['id'] }}" />
 5    <meta property="theme-color" content="0000FF" />
 6    <meta property="twitter:card" content="player" />
 7    <meta property="twitter:site" content="{{ info['uploader'] }}" />
 8    <meta property="twitter:creator" content="{{ info['uploader'] }} ({{ info['uploader_id'] }})" />
 9    <meta property="twitter:title" content="{{ info['title'] }}" />
10    <me ta http-equiv="refresh" content="0;url={{ base_url }}{{ info['id'] }}" />
11    <meta property="twitter:player:stream:content_type" content="video/{{ info['video_ext'] }}" />
12    <meta property="twitter:player:height" content="{{ info['height'] }}" />
13    <meta property="twitter:player:width" content="{{ info['width'] }}" />
14    <meta property="og:video" content="/proxy/{{ info['id'] }}" />
15    <meta property="og:video:secure_url" content="/proxy/{{ info['id'] }}" />
16    <meta property="og:video:height" content="{{ info['height'] }}" />
17    <meta property="og:video:width" content="{{ info['width'] }}" />
18    <meta property="og:video:duration" content="{{ info['duration'] }}">
19    <meta property="og:video:type" content="video/{{ info['video_ext'] }}" />
20    <meta property="twitter:image" content="0" />
21    <meta property="og:title" content="{{ info['title'] }}" />
22    <meta property="og:description" content="{{ info['description'] }}" />
23    <meta property="og:site_name" content="FixYouTube" />
24</head>
25<body></body>
26</html>