get_artist: Default to None if mix is missing (closes #165)

This commit is contained in:
sigma67 2021-02-03 10:41:41 +01:00
commit abbc13f7af
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -278,9 +278,9 @@ class BrowsingMixin:
subscription_button = header['subscriptionButton']['subscribeButtonRenderer']
artist['channelId'] = subscription_button['channelId']
artist['shuffleId'] = nav(header,
['playButton', 'buttonRenderer'] + NAVIGATION_WATCH_PLAYLIST_ID)
['playButton', 'buttonRenderer'] + NAVIGATION_WATCH_PLAYLIST_ID, True)
artist['radioId'] = nav(header, ['startRadioButton', 'buttonRenderer']
+ NAVIGATION_WATCH_PLAYLIST_ID)
+ NAVIGATION_WATCH_PLAYLIST_ID, True)
artist['subscribers'] = nav(subscription_button,
['subscriberCountText', 'runs', 0, 'text'], True)
artist['subscribed'] = subscription_button['subscribed']