diff options
author | zrose584 <57181548+zrose584@users.noreply.github.com> | 2022-01-17 00:49:49 +0100 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-01-17 09:01:09 -0500 |
commit | a5ef801c073e2be932430b13ab7c0524e1c1e1b6 (patch) | |
tree | 7f8ef13fba5d67fa45de14c6cbf9f40ff6e76872 /youtube/watch.py | |
parent | 63c92e0c4ef4652e67fb7a3eca427f26f782e2e2 (diff) | |
download | yt-local-a5ef801c073e2be932430b13ab7c0524e1c1e1b6.tar.lz yt-local-a5ef801c073e2be932430b13ab7c0524e1c1e1b6.tar.xz yt-local-a5ef801c073e2be932430b13ab7c0524e1c1e1b6.zip |
handle missing storyboard
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/watch.py')
-rw-r--r-- | youtube/watch.py | 3 |
1 files changed, 2 insertions, 1 deletions
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'], |