I am trying to use the musicBrainz api for getting the discography of an artist using the following method: http://www.musicbrainz.org/ws/2/release/?query=artist:eminem
but i get a lot of unsorted and repeated data. I know that i can use keywords (AND, OR, etc) but i do not really know how to sort it by date or filter repeated data. Is there a way to do this in the rest call or have i to implement these sort methods in my code?
Asked
Active
Viewed 560 times
2

Alxs24
- 69
- 7
1 Answers
1
About repeated data: It sounds what you want are release groups, not releases. For example a certain album is one release group on MusicBrainz, but usually has multiple different releases in this group due to different editions of an album.
About sorting: Unfortunately cou can't sort the data while querying the web service yet. There is a ticket for that: MBS-5636. If you do want to sort the data, you have to fetch all of it and sort it yourself.

JonnyJD
- 2,593
- 1
- 28
- 44
-
Thanks, this answer help me a lot. i didn't know what were the release groups about and now i will test them – Alxs24 Jan 12 '14 at 01:54