From 5906633641f755fa70a22846c17259b2a5774210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 23 Jun 2021 15:48:19 -0500 Subject: fix settings.subtitles_mode in plyr --- youtube/templates/watch.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'youtube/templates') diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index a59b54a..3b2c2da 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -390,7 +390,11 @@ const player = new Plyr(document.getElementById('js-video-player'), { disableContextMenu: false, captions: { + {% if settings.subtitles_mode > 0 %} active: true, + {% else %} + active: false, + {% endif %} language: '{{ settings.subtitles_language }}' }, controls: [ -- cgit v1.2.3