aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates
diff options
context:
space:
mode:
authorzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-07 19:28:52 +0200
committerzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-07 19:28:52 +0200
commitf8d9be2d5a947a2adde12d187a52b18b7218c541 (patch)
treee0c2943b1de9f400acdbd25db2492c3673d88733 /youtube/templates
parent9123d9a6cfa2af511b17591541ab2e67aa83475f (diff)
downloadyt-local-f8d9be2d5a947a2adde12d187a52b18b7218c541.tar.lz
yt-local-f8d9be2d5a947a2adde12d187a52b18b7218c541.tar.xz
yt-local-f8d9be2d5a947a2adde12d187a52b18b7218c541.zip
settings.py: add 'proxy_images'
Diffstat (limited to 'youtube/templates')
-rw-r--r--youtube/templates/base.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube/templates/base.html b/youtube/templates/base.html
index 4ff83c5..462cac4 100644
--- a/youtube/templates/base.html
+++ b/youtube/templates/base.html
@@ -3,7 +3,9 @@
<head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
- <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline'; media-src 'self' https://*.googlevideo.com">
+ {% if settings.proxy_images %}
+ <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline'; media-src 'self' https://*.googlevideo.com">
+ {% endif %}
<link href="{{ theme_path }}" type="text/css" rel="stylesheet">
<link href="/youtube.com/static/shared.css" type="text/css" rel="stylesheet">
<link href="/youtube.com/static/comments.css" type="text/css" rel="stylesheet">