diff options
author | Jesús <heckyel@hyperbola.info> | 2021-06-23 15:48:19 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-06-23 15:48:19 -0500 |
commit | 5906633641f755fa70a22846c17259b2a5774210 (patch) | |
tree | f2f9cf1304b61b210ede5e931909c86e158b9c03 /youtube/templates/watch.html | |
parent | 2c56a2471111eea67177849bd814ad42256b2964 (diff) | |
download | yt-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.html | 4 |
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: [ |