all repos — FixYouTube-legacy @ 8e6cea5cba756c2a1d1ca5cdea41395ea4b5acbc

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'] }}" />
 9    <meta property="twitter:title" content="{{ info['uploader'] }} ({{ info['uploader_id'] }})" />
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:type" content="video/{{ info['video_ext'] }}" />
19    <meta property="twitter:image" content="0" />
20    <meta property="og:title" content="{{ info['title'] }}" />
21    <meta property="og:description" content="{{ info['description'] }}" />
22    <meta property="og:site_name" content="FixYouTube" />
23</head>
24<body></body>
25</html>