From 61b45183352754a9174a75f0ee8600ffb261bb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 23 Jun 2021 15:19:31 -0500 Subject: Fix set language subtitles --- youtube/static/js/plyr-start.js | 23 ----------------------- youtube/templates/watch.html | 26 +++++++++++++++++++++++++- 2 files changed, 25 insertions(+), 24 deletions(-) delete mode 100644 youtube/static/js/plyr-start.js diff --git a/youtube/static/js/plyr-start.js b/youtube/static/js/plyr-start.js deleted file mode 100644 index aae3002..0000000 --- a/youtube/static/js/plyr-start.js +++ /dev/null @@ -1,23 +0,0 @@ -// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later -const player = new Plyr(document.getElementById('js-video-player'), { - disableContextMenu: false, - captions: { - active: true, - language: 'en' - }, - controls: [ - 'play-large', - 'play', - 'progress', - 'current-time', - 'mute', - 'volume', - 'captions', - 'settings', - 'fullscreen' - ], - iconUrl: "/youtube.com/static/modules/plyr/plyr.svg", - blankVideo: "/youtube.com/static/modules/plyr/blank.webm", - debug: false -}); -// @license-end diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 798e783..8a2949e 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -385,7 +385,31 @@ - + {% elif settings.use_video_player == 1 %} -- cgit v1.2.3