From de5510d3e36759fd70e07448c4bff0b301caa97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 3 Jul 2021 23:38:50 -0500 Subject: Improved plyr configuration --- youtube/templates/watch.html | 22 +++++++++++++++------- youtube/watch.py | 2 ++ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 9a80c68..f05fc81 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -404,15 +404,22 @@ crossorigin="anonymous"> diff --git a/youtube/watch.py b/youtube/watch.py index 094f8b5..3bee71f 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -556,6 +556,8 @@ def get_watch_page(video_id=None): js_data = { 'video_id': video_info['id'], + 'settings': settings.current_settings_dict, + 'has_manual_captions': any(s.get('on') for s in subtitle_sources), }, # for embed page font_family=youtube.font_choices[settings.font], -- cgit v1.2.3