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:
parent
27a12e6765
commit
8ec9b6ac41
5 changed files with 10 additions and 24 deletions
|
|
@ -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),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue