[GH-ISSUE #801] Bug in getting values from current_user_playing_track() #498

Closed
opened 2026-02-27 23:22:57 +03:00 by kerem · 1 comment
Owner

Originally created by @Dimokat on GitHub (May 2, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/801

When i want to get the key 'name' from the dict, which i get from this method it returns None. It's because there is two keys named 'name', first one is artist name, and the second one is song name, please rename it somehow, it's makes troubles when you want to get some song info.

Originally created by @Dimokat on GitHub (May 2, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/801 When i want to get the key 'name' from the dict, which i get from this method it returns None. It's because there is two keys named 'name', first one is artist name, and the second one is song name, please rename it somehow, it's makes troubles when you want to get some song info.
kerem 2026-02-27 23:22:57 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Peter-Schorn commented on GitHub (May 3, 2022):

The type of the value returned by this method is a nested dictionary. Do you not know how to access nested values in dictionaries?

<!-- gh-comment-id:1115514699 --> @Peter-Schorn commented on GitHub (May 3, 2022): The type of the value returned by this method is a nested dictionary. Do you not know how to access nested values in dictionaries?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#498
No description provided.