diff options
author | Jesús <heckyel@hyperbola.info> | 2021-08-14 16:45:52 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-14 16:45:52 -0500 |
commit | ccaf2b9f9f1d3c3b5fa5e3de46f8a05dc9471148 (patch) | |
tree | c36013205732d1f893da8b3916d1552bf495b834 /youtube | |
parent | db1b23fea4984cc191a6322ea7ea233d15a0acea (diff) | |
download | yt-local-ccaf2b9f9f1d3c3b5fa5e3de46f8a05dc9471148.tar.lz yt-local-ccaf2b9f9f1d3c3b5fa5e3de46f8a05dc9471148.tar.xz yt-local-ccaf2b9f9f1d3c3b5fa5e3de46f8a05dc9471148.zip |
[embed]: fix sha512sum
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/templates/embed.html | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/youtube/templates/embed.html b/youtube/templates/embed.html index b473c81..8abc408 100644 --- a/youtube/templates/embed.html +++ b/youtube/templates/embed.html @@ -51,45 +51,9 @@ {% if settings.use_video_player == 2 %} <!-- plyr --> <script src="/youtube.com/static/modules/plyr/plyr.min.js" - integrity="sha512-l6ZzdXpfMHRfifqaR79wbYCEWjLDMI9DnROvb+oLkKq6d7MGroGpMbI7HFpicvmAH/2aQO+vJhewq8rhysrImw==" + integrity="sha512-LxSGuB4I2iAln3VLWi8t3RYhEks4/2rtcCw6kqiBghbqBJHXg5ikpeRxEOm0luiIuKDiqwNI3rsCXI/d+MPPAA=="" crossorigin="anonymous"></script> - <script> - // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later - let captionsActive; - switch(true) { - case data.settings.subtitles_mode == 2: - captionsActive = true; - break; - case data.settings.subtitles_mode == 1 && data.has_manual_captions: - captionsActive = true; - break; - default: - captionsActive = false; - } - const player = new Plyr(document.getElementById('js-video-player'), { - disableContextMenu: false, - captions: { - active: captionsActive, - language: data.settings.subtitles_language, - }, - 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, - storage: {enabled: false}, - }); - // @license-end - </script> + <script src="/youtube.com/static/js/plyr-start.js"></script> <!-- /plyr --> {% elif settings.use_video_player == 1 %} <script src="/youtube.com/static/js/hotkeys.js"></script> |