aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/__init__.py
diff options
context:
space:
mode:
authorJames Taylor <28744867+user234683@users.noreply.github.com>2020-10-12 09:37:13 -0700
committerGitHub <noreply@github.com>2020-10-12 09:37:13 -0700
commitfd253d9e07fa34e2a22d28d445839147daca9ee0 (patch)
tree7dfecaadce3cc58ddcc86e2cd9d5ef762563e9ce /youtube/__init__.py
parent37d286fc7ce8feec72d9ecf5d238a42c873de1d0 (diff)
parent2cfc6dec39ccdcc0c5fe2eea73f47b7040e51833 (diff)
downloadyt-local-fd253d9e07fa34e2a22d28d445839147daca9ee0.tar.lz
yt-local-fd253d9e07fa34e2a22d28d445839147daca9ee0.tar.xz
yt-local-fd253d9e07fa34e2a22d28d445839147daca9ee0.zip
Merge branch 'master' into optional_proxy_images
Diffstat (limited to 'youtube/__init__.py')
-rw-r--r--youtube/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube/__init__.py b/youtube/__init__.py
index 6c2ec48..3c271f1 100644
--- a/youtube/__init__.py
+++ b/youtube/__init__.py
@@ -5,6 +5,7 @@ import traceback
import re
from sys import exc_info
yt_app = flask.Flask(__name__)
+yt_app.config['TEMPLATES_AUTO_RELOAD'] = True
yt_app.url_map.strict_slashes = False
@@ -25,6 +26,7 @@ theme_names = {
def inject_theme_preference():
return {
'theme_path': '/youtube.com/static/' + theme_names[settings.theme] + '.css',
+ 'settings': settings,
}
@yt_app.template_filter('commatize')