When i try to call .playlist_tracks() or .track() and i send in string i get this error:
can only concatenate tuple (not “str”) to tuple
playlist_id = query.split("/")[-1].split("?")[0]
print(playlist_id)
try:
playlist = spotify.playlist_tracks(playlist_id)
except Exception as e:
print(f'Error while getting playlist data: {str(e)}')
logging.error(f'Error while getting playlist data: {str(e)}')
query is a url returned from Discord. ive tried to force it to be str and everything.
did they change how the want the input to those functions?
ive tried to use URL, URI or ID and all return the same error.
New contributor
Ólafur Torfason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.