handle missing storyboard
Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user