fix settings.subtitles_mode in plyr

This commit is contained in:
Jesús 2021-06-23 15:48:19 -05:00
parent 2c56a24711
commit 5906633641
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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: [