removed named exception in favor of ValueError when non-music YouTube channel id given to get_artist. Minor changes to structure of related artists property in get_artist, added thumbnails.

This commit is contained in:
mikefreemanwd 2021-03-23 11:57:10 -04:00
commit 8ec9b6ac41
5 changed files with 10 additions and 24 deletions

View file

@ -205,5 +205,6 @@ def parse_related_artist(data):
return {
'title': nav(item, TITLE_TEXT),
'browseId': nav(item, TITLE + NAVIGATION_BROWSE_ID),
'subscribers': nav(item, SUBTITLE)
'subscribers': nav(item, SUBTITLE).split(' ')[0],
'thumbnails': nav(item, THUMBNAIL_RENDERER),
}