added documentation for related artists feature

This commit is contained in:
mikefreemanwd 2021-03-22 12:13:40 -04:00
commit 27a12e6765
2 changed files with 21 additions and 5 deletions

View file

@ -32,7 +32,7 @@ Features
| **Browsing**:
* search (including all filters)
* get artist information and releases (songs, videos, albums, singles)
* get artist information and releases (songs, videos, albums, singles, related artists)
* get user information (videos, playlists)
* get albums
* get song metadata

View file

@ -190,10 +190,11 @@ class BrowsingMixin:
def get_artist(self, channelId: str) -> Dict:
"""
Get information about an artist and their top releases (songs,
albums, singles and videos). The top lists contain pointers
for getting the full list of releases. For songs/videos, pass
the browseId to :py:func:`get_playlist`. For albums/singles,
pass browseId and params to :py:func:`get_artist_albums`.
albums, singles, videos, and related artists). The top lists
contain pointers for getting the full list of releases. For
songs/videos, pass the browseId to :py:func:`get_playlist`.
For albums/singles, pass browseId and params to :py:func:
`get_artist_albums`.
:param channelId: channel id of the artist
:return: Dictionary with requested information.
@ -255,6 +256,21 @@ class BrowsingMixin:
}
],
"browseId": "VLPLMpM3Z0118S5xuNckw1HUcj1D021AnMEB"
},
"related": {
"results": [
{
"browseId": "UCt2KxZpY5D__kapeQ8cauQw",
"subscribers": "450K subscribers",
"title": "The Verve"
},
{
"browseId": "UCwK2Grm574W1u-sBzLikldQ",
"subscribers": "341K subscribers",
"title": "Liam Gallagher"
},
...
]
}
}
"""