Skip to content

Beginner question: get genre from album of an given artist #98

Answered by prcutler
TheSud asked this question in Support
Discussion options

You must be logged in to vote

If I had to guess:

This query is giving you 3649 as the result, but it's the master ID, no the release ID for the Opeth album:
first_found_release (See: https://www.discogs.com/master/3649-Opeth-Orchid)

I don't have time to test the code right now, but can you update that query to get a result of a release ID and not a master ID?

Or can you add code to see if the result you're getting is equal to d.master.id - because that's not what you want, you want d.release_id, similar to what you have. But does the first ['id] always return a master ID or release ID?

I hope that makes sense, I'm not an expert. :)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@TheSud
Comment options

@TheSud
Comment options

Answer selected by TheSud
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants