mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #743] Response fields missing from /tracks #449
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#449
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MatejBevec on GitHub (Nov 12, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/743
Hi, I have a question about the response from
spotipy.tracks().It seems like the Spotify API was recently updated and now, according to the documentation, the call to
https://api.spotify.com/v1/tracksshould return artists' genres and some other info:However, when using
spotipy.tracks(track_ids), these fields are missing:What may be the explanation for this?
@dieser-niko commented on GitHub (Nov 15, 2022):
Hm. Seems to be a bug on Spotify's part. The library doesn't change the response from Spotify, it just parses the JSON. As a workaround just use
sp.artists(artists).By the way, you can use the Spotify Console to test API calls.
@stephanebruckert commented on GitHub (Nov 15, 2022):
Spotify doesn't always have the
genresfor an artist, so it's not returning anything. Nothing wrong here, closing.@dieser-niko commented on GitHub (Nov 15, 2022):
That's not entirely true. Yes, sometimes the artist itself doesn't add genres, but let's take Ed Sheeran as an example. If you use
sp.artist("6eUKZXaKkcviH0Ku9w2n3V"), two genres will be displayed. But if you usesp.track("3rmo8F54jFF8OgYsqTxm5d")(one of his tracks), then no genres are displayed.@stephanebruckert commented on GitHub (Nov 15, 2022):
A track can have a different genre than the one specified for its artist?
@dieser-niko commented on GitHub (Nov 15, 2022):
Not sure about that. But reading the description, I would assume that the attribute is not meant for the genre of titles, especially since it is categorized under artist and not under tracks.