diff --git a/README.rst b/README.rst index 65a635e..5511da0 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/ytmusicapi/mixins/browsing.py b/ytmusicapi/mixins/browsing.py index 45307c0..96a4c77 100644 --- a/ytmusicapi/mixins/browsing.py +++ b/ytmusicapi/mixins/browsing.py @@ -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" + }, + ... + ] } } """