From 1b860c69177a88257b841aab5511cd816fffed9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 24 May 2021 21:17:59 -0500 Subject: Not force plyr as player --- settings.py | 12 ++++++++---- youtube/templates/watch.html | 25 +++++++++++++++---------- 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/settings.py b/settings.py index 1482db0..a2373da 100644 --- a/settings.py +++ b/settings.py @@ -148,11 +148,15 @@ For security reasons, enabling this is not recommended.''', 'category': 'playback', }), - ('use_video_hotkeys', { - 'label': 'Enable video hotkeys', - 'type': bool, - 'default': True, + ('use_video_player', { + 'type': int, + 'default': 1, 'comment': '', + 'options': [ + (0, 'Native'), + (1, 'Native with hotkeys'), + (2, 'Plyr'), + ], 'category': 'interface', }), diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 993befc..a8442ca 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -5,9 +5,11 @@ {% block style %} - - - + {% if settings.use_video_player == 2 %} + + + + {% endif %} {% endblock style %} {% block main %} @@ -350,13 +352,16 @@ - - - - - {% if settings.use_video_hotkeys %} {% endif %} + {% if settings.use_video_player == 2 %} + + + + + {% elif settings.use_video_player == 1 %} + + {% endif %} {% if settings.use_comments_js %} {% endif %} {% if settings.use_sponsorblock_js %} {% endif %} {% endblock main %} -- cgit v1.2.3