Skip to content

Commit

Permalink
Fixed some playlist functions docstrings (spotipy-dev#732)
Browse files Browse the repository at this point in the history
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().
  • Loading branch information
zz-xx authored and IdmFoundInHim committed Dec 23, 2021
1 parent 48d04f3 commit b642f66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spotipy/client.py
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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))
Expand Down

0 comments on commit b642f66

Please sign in to comment.