aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-08-29 22:43:10 -0500
committerJesús <heckyel@hyperbola.info>2021-08-29 22:43:10 -0500
commit309ff409436a5a016c33f71f8b483d9ed226aaaf (patch)
treebd42edc063787b274e317e6dd98a0ee909879322 /youtube/watch.py
parent56b17c634ce629b6d84a4118de14b426cc7955ba (diff)
downloadyt-local-309ff409436a5a016c33f71f8b483d9ed226aaaf.tar.lz
yt-local-309ff409436a5a016c33f71f8b483d9ed226aaaf.tar.xz
yt-local-309ff409436a5a016c33f71f8b483d9ed226aaaf.zip
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 <user234683@users.noreply.github.com>
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py5
1 files changed, 4 insertions, 1 deletions
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,