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().
This commit is contained in:
Yash authored and GitHub committed 2021-09-30 22:01:12 +01:00
1 parent 48d04f343b
commit a81aa595ba
1 file changed
+3 -3
+3 -3
View File
@@ -633,7 +633,7 @@ class Spotify(object):
""" Get full details of the tracks of a playlist. """ Get full details of the tracks of a playlist.
Parameters: Parameters:
- playlist_id - the id of the playlist - playlist_id - the playlist ID, URI or URL
- fields - which fields to return - fields - which fields to return
- limit - the maximum number of tracks to return - limit - the maximum number of tracks to return
- offset - the index of the first track to return - offset - the index of the first track to return
@@ -661,7 +661,7 @@ class Spotify(object):
""" Get full details of the tracks and episodes of a playlist. """ Get full details of the tracks and episodes of a playlist.
Parameters: Parameters:
- playlist_id - the id of the playlist - playlist_id - the playlist ID, URI or URL
- fields - which fields to return - fields - which fields to return
- limit - the maximum number of tracks to return - limit - the maximum number of tracks to return
- offset - the index of the first track to return - offset - the index of the first track to return
@@ -683,7 +683,7 @@ class Spotify(object):
""" Get cover of a playlist. """ Get cover of a playlist.
Parameters: Parameters:
- playlist_id - the id of the playlist - playlist_id - the playlist ID, URI or URL
""" """
plid = self._get_id("playlist", playlist_id) plid = self._get_id("playlist", playlist_id)
return self._get("playlists/%s/images" % (plid)) return self._get("playlists/%s/images" % (plid))