From 309ff409436a5a016c33f71f8b483d9ed226aaaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sun, 29 Aug 2021 22:43:10 -0500 Subject: watch.html: Move loose inline javascript into watch.js The number of inline code blocks and the dependencies between them became unmanageable. From 9d96c07a3c2e68f1893634574c3be64e41a2c041 Mon Sep 17 00:00:00 2001 From: James Taylor --- youtube/watch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'youtube/watch.py') diff --git a/youtube/watch.py b/youtube/watch.py index e397574..5bb3341 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -654,7 +654,6 @@ def get_watch_page(video_id=None): invidious_reload_button = info['invidious_reload_button'], video_url = util.URL_ORIGIN + '/watch?v=' + video_id, video_id = video_id, - time_start = time_start, js_data = { 'video_id': info['id'], @@ -663,6 +662,10 @@ def get_watch_page(video_id=None): 'has_manual_captions': any(s.get('on') for s in subtitle_sources), **source_info, 'using_pair_sources': using_pair_sources, + 'time_start': time_start, + 'playlist': info['playlist'], + 'related': info['related_videos'], + 'playability_error': info['playability_error'], }, font_family=youtube.font_choices[settings.font], **source_info, -- cgit v1.2.3