added documentation for related artists feature

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

View file

@ -32,7 +32,7 @@ Features
| **Browsing**: | **Browsing**:
* search (including all filters) * 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 user information (videos, playlists)
* get albums * get albums
* get song metadata * get song metadata

View file

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