aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/templates')
-rw-r--r--youtube/templates/watch.html4
1 files changed, 4 insertions, 0 deletions
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: [