Issue #36 From e51f0a78c778a2283887db7ffc22421a7c849296 Mon Sep 17 00:00:00 2001 From: James Taylor <user234683@users.noreply.github.com>
36 lines
1.5 KiB
HTML
36 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline'; media-src 'self' https://*.googlevideo.com; {{ "img-src 'self' https://*.googleusercontent.com https://*.ggpht.com https://*.ytimg.com;" if not settings.proxy_images else "" }}"/>
|
|
<title>{{ title }}</title>
|
|
<link href="/youtube.com/static/favicon.ico" type="image/x-icon" rel="icon"/>
|
|
<style>
|
|
body {
|
|
margin: 0rem;
|
|
padding: 0rem;
|
|
}
|
|
video {
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<video controls autofocus onmouseleave="{{ title }}"
|
|
oncontextmenu="{{ title }}" onmouseenter="{{ title }}" title="{{ title }}">
|
|
{% for video_source in video_sources %}
|
|
<source src="{{ video_source['src'] }}" type="{{ video_source['type'] }}">
|
|
{% endfor %}
|
|
{% for source in subtitle_sources %}
|
|
{% if source['on'] %}
|
|
<track label="{{ source['label'] }}" src="{{ source['url'] }}" kind="subtitles" srclang="{{ source['srclang'] }}" default>
|
|
{% else %}
|
|
<track label="{{ source['label'] }}" src="{{ source['url'] }}" kind="subtitles" srclang="{{ source['srclang'] }}">
|
|
{% endif %}
|
|
{% endfor %}
|
|
</video>
|
|
</body>
|
|
</html>
|