aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/yt_data_extract
diff options
context:
space:
mode:
authorzrose584 <57181548+zrose584@users.noreply.github.com>2022-01-17 00:49:49 +0100
committerJesús <heckyel@hyperbola.info>2022-01-17 09:01:09 -0500
commita5ef801c073e2be932430b13ab7c0524e1c1e1b6 (patch)
tree7f8ef13fba5d67fa45de14c6cbf9f40ff6e76872 /youtube/yt_data_extract
parent63c92e0c4ef4652e67fb7a3eca427f26f782e2e2 (diff)
downloadyt-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/yt_data_extract')
-rw-r--r--youtube/yt_data_extract/watch_extraction.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/yt_data_extract/watch_extraction.py b/youtube/yt_data_extract/watch_extraction.py
index 309c85c..d90d9ad 100644
--- a/youtube/yt_data_extract/watch_extraction.py
+++ b/youtube/yt_data_extract/watch_extraction.py
@@ -650,7 +650,8 @@ def extract_watch_info(polymer_json):
# other stuff
info['author_url'] = 'https://www.youtube.com/channel/' + info['author_id'] if info['author_id'] else None
- info['storyboard_spec_url'] = player_response['storyboards']['playerStoryboardSpecRenderer']['spec']
+ sb = player_response.get('storyboards')
+ info['storyboard_spec_url'] = sb['playerStoryboardSpecRenderer']['spec'] if sb else None
return info