fixes #220 - Unexpected Music Artist Bios

pull/702/head
Luke Pulverenti 12 years ago
parent a190627c02
commit df8a1d29c4

@ -47,9 +47,11 @@ namespace MediaBrowser.Controller.Providers.Music
throw;
}
if (searchResult != null && searchResult.results != null && searchResult.results.artistmatches != null && searchResult.results.artistmatches.artist.Any())
if (searchResult != null && searchResult.results != null && searchResult.results.artistmatches != null && searchResult.results.artistmatches.artist.Count > 0)
{
return searchResult.results.artistmatches.artist.First().mbid;
var artist = searchResult.results.artistmatches.artist.FirstOrDefault(i => string.Equals(i.name, item.Name, System.StringComparison.OrdinalIgnoreCase));
return artist != null ? artist.mbid : searchResult.results.artistmatches.artist[0].mbid;
}
return null;

@ -46,7 +46,7 @@ namespace MediaBrowser.Controller.Providers.Music
{
get
{
return "04-24-2013";
return "04-25-2013";
}
}

Loading…
Cancel
Save