Im not 100% certain on the python syntax (sorry if it's not quite right) but could you add an additional method to your local spotipy/client.py
file? It would be very similar to user_playlist/user_playlist_tracks
but would bypass the need for a user id.
so, something like:
def user_playlist_custom(self, playlist_id=None, fields=None):
""" Gets playlist of a user
Parameters:
- playlist_id - the id of the playlist
- fields - which fields to return
"""
plid = self._get_id('playlist', playlist_id)
return self._get("playlists/%s" % (plid), fields=fields)
or just the tracks:
def user_playlist_tracks_custom(self, playlist_id=None, fields=None,
limit=100, offset=0, market=None):
""" Get full details of the tracks of a playlist owned by a user.
Parameters:
- playlist_id - the id of the playlist
- fields - which fields to return
- limit - the maximum number of tracks to return
- offset - the index of the first track to return
- market - an ISO 3166-1 alpha-2 country code.
"""
plid = self._get_id('playlist', playlist_id)
return self._get("playlists/%s/tracks" % (plid),
limit=limit, offset=offset, fields=fields,
market=market)