From c2ca47c5d3f452f94003d48c661a55685be649d0 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 9 Sep 2020 18:53:11 -0700 Subject: Add setting to enable/disable video hotkeys --- settings.py | 7 +++++++ youtube/templates/watch.html | 15 ++++++++------- youtube/watch.py | 4 +--- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/settings.py b/settings.py index 7e988f7..d8e8dce 100644 --- a/settings.py +++ b/settings.py @@ -108,6 +108,13 @@ For security reasons, enabling this is not recommended.''', ], }), + ('use_video_hotkeys', { + 'label': 'Enable video hotkeys', + 'type': bool, + 'default': True, + 'comment': '', + }), + ('theme', { 'type': int, 'default': 0, diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index f0dcb8d..74b9887 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -48,7 +48,7 @@ width: 150px; } - {% if theater_mode %} + {% if settings.theater_mode %} video{ grid-column: 1 / span 5; justify-self: center; @@ -582,8 +582,8 @@ Reload without invidious (for usage of new identity button). {% endif %} - {% if related_videos_mode != 0 %} -