aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-12-27 13:23:18 -0500
committerJesús <heckyel@hyperbola.info>2021-12-27 13:23:18 -0500
commitb21b2a60097cc4103a8457404d1c4457a2924e10 (patch)
tree34e6602520fc09cf7e3b21588785f4a666caf567 /youtube
parenta1d3cc5045b4b1ecfda914a27585fd9a486bbaa2 (diff)
downloadyt-local-b21b2a60097cc4103a8457404d1c4457a2924e10.tar.lz
yt-local-b21b2a60097cc4103a8457404d1c4457a2924e10.tar.xz
yt-local-b21b2a60097cc4103a8457404d1c4457a2924e10.zip
fix: falied load resource: net:: ERR_FILE_NOT_FOUND
Diffstat (limited to 'youtube')
-rw-r--r--youtube/templates/base.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube/templates/base.html b/youtube/templates/base.html
index 39f8d2b..d0d7959 100644
--- a/youtube/templates/base.html
+++ b/youtube/templates/base.html
@@ -1,9 +1,14 @@
+{% if settings.app_public %}
+ {% set app_url = settings.app_url|string %}
+{% else %}
+ {% set app_url = settings.app_url|string + ':' + settings.port_number|string %}
+{% endif %}
<!DOCTYPE html>
<html lang="en">
<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' 'unsafe-eval'; media-src 'self' blob: data: https://*.googlevideo.com; {{ "img-src 'self' https://*.googleusercontent.com https://*.ggpht.com https://*.ytimg.com;" if not settings.proxy_images else "" }}">
+ <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval'; media-src 'self' blob: {{ app_url }}/* data: https://*.googlevideo.com; {{ "img-src 'self' https://*.googleusercontent.com https://*.ggpht.com https://*.ytimg.com;" if not settings.proxy_images else "" }}">
<title>{{ page_title }}</title>
<link title="YT Local" href="/youtube.com/opensearch.xml" rel="search" type="application/opensearchdescription+xml"/>
<link href="/youtube.com/static/favicon.ico" type="image/x-icon" rel="icon"/>