From a5ef801c073e2be932430b13ab7c0524e1c1e1b6 Mon Sep 17 00:00:00 2001 From: zrose584 <57181548+zrose584@users.noreply.github.com> Date: Mon, 17 Jan 2022 00:49:49 +0100 Subject: handle missing storyboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- youtube/watch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'youtube/watch.py') diff --git a/youtube/watch.py b/youtube/watch.py index a592385..886f2a4 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -789,7 +789,8 @@ def get_watch_page(video_id=None): video_url = util.URL_ORIGIN + '/watch?v=' + video_id, video_id = video_id, storyboard_url = (util.URL_ORIGIN + '/ytl-api/storyboard.vtt?' + - urlencode([('spec_url', info['storyboard_spec_url'])])), + urlencode([('spec_url', info['storyboard_spec_url'])]) + if info['storyboard_spec_url'] else None), js_data = { 'video_id': info['id'], -- cgit v1.2.3