Remove get_artist_songs (get_playlist_items can be used for this purpose) (#4)

This commit is contained in:
sigma67 2020-04-14 23:51:35 +02:00
commit 4f963b6ba1
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -166,10 +166,10 @@ class YTMusic:
:param channelId: channel id of the artist :param channelId: channel id of the artist
:return: Detailed information about the artist and :return: Detailed information about the artist and
their songs, albums, singles and videos. Example: their songs, albums, singles and videos. Example::
{ {
"name": "Oasis" "name": "Oasis",
"description": "Oasis were ...", "description": "Oasis were ...",
"views": "1,838,795,605", "views": "1,838,795,605",
"songs": { "songs": {
@ -257,12 +257,6 @@ class YTMusic:
return artist return artist
def get_artist_songs(self, playlistId):
body = {"browseId": playlistId}
endpoint = 'browse'
response = self.__send_request(endpoint, body)
pass
def get_artist_albums(self, channelId, params): def get_artist_albums(self, channelId, params):
body = {"browseId": channelId, "params": params} body = {"browseId": channelId, "params": params}
endpoint = 'browse' endpoint = 'browse'
@ -275,9 +269,9 @@ class YTMusic:
:param browseId: browseId of the album, for example :param browseId: browseId of the album, for example
returned by :py:func:`search` returned by :py:func:`search`
:return: Dictionary with title, description, artist and tracks :return: Dictionary with title, description, artist and tracks.
Each track is in the following format: Each track is in the following format::
{ {
"index": "1", "index": "1",