aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/watch.html
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-06-23 15:48:19 -0500
committerJesús <heckyel@hyperbola.info>2021-06-23 15:48:19 -0500
commit5906633641f755fa70a22846c17259b2a5774210 (patch)
treef2f9cf1304b61b210ede5e931909c86e158b9c03 /youtube/templates/watch.html
parent2c56a2471111eea67177849bd814ad42256b2964 (diff)
downloadyt-local-5906633641f755fa70a22846c17259b2a5774210.tar.lz
yt-local-5906633641f755fa70a22846c17259b2a5774210.tar.xz
yt-local-5906633641f755fa70a22846c17259b2a5774210.zip
fix settings.subtitles_mode in plyr
Diffstat (limited to 'youtube/templates/watch.html')
-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: [