mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #588] Finding an album object's record label #354
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#354
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 @denn9s on GitHub (Oct 17, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/588
Hi everyone, I've been trying to access the record label of an album object, but I can only access these bits of info:
album_type
artists
available_markets
external_urls
href
id
images
name
release_date
release_date_precision
total_tracks
type
uri
I figured there would be a 'label' key for that, but I can't seem to access it through spotipy.
@stephanebruckert commented on GitHub (Oct 17, 2020):
what album ID are you using? I think not all albums have a label. Can you try with
0sNOF9WDwhWunNAHPD3Baj?@denn9s commented on GitHub (Oct 17, 2020):
Hmmm, I'm currently trying it for
7e7t0MCrNDcJZsPwUKjmOcand I see the label asVictor Victor Worldwidein the developer console on Spotify's website, but don't seelabelin the spotipy object keys.@stephanebruckert commented on GitHub (Oct 17, 2020):
what method are you using? (code) it works for me with
album()@denn9s commented on GitHub (Oct 18, 2020):
(I understand it's a bit shoddy, just messing around with the API for now) but I'm accessing a playlist through its
uriand I'm just testing it with the first track's album. Am I accessing it correctly?@stephanebruckert commented on GitHub (Oct 18, 2020):
that's because you are looking at the get-album endpoint https://developer.spotify.com/documentation/web-api/reference/albums/get-album/
whereas you are using a python method for the get-playlist endpoint:
https://developer.spotify.com/documentation/web-api/reference/playlists/get-playlist/
To get the label, you will need to do another query just for the album:
sp.album(album_id)@denn9s commented on GitHub (Oct 18, 2020):
Ah, I see where I got it mixed up. I just made a query for the album itself and it worked as intended. Thank you so much for the help, I really appreciate it! 👍