I have imported the musicbrainzws2-java library into my project and I have been reading through the documentation that MusicBrainz has on their web service. It is very confusing though. I was wondering if someone could help me understand how to navigate through the MusicBrainz data base. I don't understand the terminology and my main goal of using the database is to gather the mbid's for various songs.
Right now this is what I have.
public static void main(String[] args) {
ArtistSearchFilterWs2 filter = new ArtistSearchFilterWs2();
filter.setArtistName("Lindsey Stirling");
filter.setLimit((long) 100);
filter.setMinScore((long) 0);
filter.setOffset((long) 0);
ArtistSearchWs2 search = new ArtistSearchWs2(filter);
List<ArtistResultWs2> result = search.getFullList();
/*
for(ArtistResultWs2 artist : result) {
System.out.println(artist.getArtist().getName() + " " + i);
i++;
if(artist.getArtist().getName() == "Lindsey Stirling") {
System.out.println(artist.getArtist().getName() + " " + i);
break;
}
}
*/
String artistName = result.get(0).getArtist().getName();
System.out.println(artistName);
List<ReleaseWs2> releases = result.get(0).getArtist().getReleaseList().getReleases();
System.out.println(releases.size());
for(ReleaseWs2 release : releases) {
System.out.println(release.getTitle());
}
For some reason it says that there are 0 releases for the artist Lindsey Stirling and on top of that I don't know how to search for a specific song based off of an artist and album