Bug in track artists search?

Nov 3, 2012 at 12:56 AM
Edited Nov 3, 2012 at 1:04 AM

Hello.

I was wondering if you can help me to get the track artists for an album? For example, I am looking at the album here:

http://www.discogs.com/Four-Tet-FabricLive-59/release/3110386

I want to get the track artists (Four Tet, Michel Redolfi, Crazy Bald Heads, etc). To get the artist for the first track, I have tried this:

Discogs3 discogs = new Discogs3();
Release release = discogs.GetRelease(3110386);
Track[] tracklist = release.Tracklist; ReleaseArtist[] artistsArray = tracklist[0].Artists; Console.WriteLine(artistsArray[0].Name);

Unfortunately artistsArray has no entries, so I get an exception. I tried the same method using a Discogs2 object and it worked fine, so I assume it must be a bug in the Discogs3 class?

Many thanks for all your work on this excellent project,

epsilonj.

Coordinator
Nov 3, 2012 at 1:28 AM

Yeah, Artists should be populated, but isn't. I just committed a new version that fixes that. If you update to the latest version and build from source, the tracklist[0].Artists will contain what you want it to.

Thanks for reporting the issue.