From b21b2a60097cc4103a8457404d1c4457a2924e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= <heckyel@hyperbola.info> Date: Mon, 27 Dec 2021 13:23:18 -0500 Subject: fix: falied load resource: net:: ERR_FILE_NOT_FOUND --- youtube/templates/base.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'youtube') 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"/> -- cgit v1.2.3