aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/yt_data_extract/watch_extraction.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-05-30 22:45:08 +0800
committerJesús <heckyel@hyperbola.info>2022-05-30 22:45:08 +0800
commit1fbc0cdd466eff4b79d2fe1959b407b791f040ae (patch)
treec27aaf38763d83b34c2c35967238df6d4d7d3d2e /youtube/yt_data_extract/watch_extraction.py
parent263469cd30ce91b3ba2eb49a0ed5be281571e7c7 (diff)
downloadyt-local-1fbc0cdd466eff4b79d2fe1959b407b791f040ae.tar.lz
yt-local-1fbc0cdd466eff4b79d2fe1959b407b791f040ae.tar.xz
yt-local-1fbc0cdd466eff4b79d2fe1959b407b791f040ae.zip
Fix preview_thumbnails
use 'deep_get' for storyboard
Diffstat (limited to 'youtube/yt_data_extract/watch_extraction.py')
-rw-r--r--youtube/yt_data_extract/watch_extraction.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube/yt_data_extract/watch_extraction.py b/youtube/yt_data_extract/watch_extraction.py
index 6b1b30d..a5ac0f5 100644
--- a/youtube/yt_data_extract/watch_extraction.py
+++ b/youtube/yt_data_extract/watch_extraction.py
@@ -669,8 +669,7 @@ 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
- sb = player_response.get('storyboards')
- info['storyboard_spec_url'] = sb['playerStoryboardSpecRenderer']['spec'] if sb else None
+ info['storyboard_spec_url'] = deep_get(player_response, 'storyboards', 'playerStoryboardSpecRenderer', 'spec')
return info