From a81aa595ba62d56815e7d83a06f08ddb95af0fc8 Mon Sep 17 00:00:00 2001 From: Yash Date: Fri, 1 Oct 2021 02:31:12 +0530 Subject: [PATCH] Fixed some playlist functions docstrings (#732) playlist_items(), playlist_cover_image() functions can take ID, URI or URL. Current docstring only mentions ID. This can also be verified and tested out. Example in examples folder also uses URI with playlist_items(). --- spotipy/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spotipy/client.py b/spotipy/client.py index 4050a574..d018a578 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -633,7 +633,7 @@ def playlist_tracks( """ Get full details of the tracks of a playlist. Parameters: - - playlist_id - the id of the playlist + - playlist_id - the playlist ID, URI or URL - fields - which fields to return - limit - the maximum number of tracks to return - offset - the index of the first track to return @@ -661,7 +661,7 @@ def playlist_items( """ Get full details of the tracks and episodes of a playlist. Parameters: - - playlist_id - the id of the playlist + - playlist_id - the playlist ID, URI or URL - fields - which fields to return - limit - the maximum number of tracks to return - offset - the index of the first track to return @@ -683,7 +683,7 @@ def playlist_cover_image(self, playlist_id): """ Get cover of a playlist. Parameters: - - playlist_id - the id of the playlist + - playlist_id - the playlist ID, URI or URL """ plid = self._get_id("playlist", playlist_id) return self._get("playlists/%s/images" % (plid))