update album queries

This commit is contained in:
Luke Pulverenti
2016-03-20 20:15:56 -04:00
parent a2a0e1ae75
commit 63fe0239e3
5 changed files with 23 additions and 25 deletions

View File

@@ -1752,6 +1752,17 @@ namespace MediaBrowser.Controller.Entities
}
}
if (!string.IsNullOrEmpty(query.AlbumArtistStartsWithOrGreater))
{
var ok = new[] { item }.OfType<IHasAlbumArtist>()
.Any(p => string.Compare(query.AlbumArtistStartsWithOrGreater, p.AlbumArtists.FirstOrDefault(), StringComparison.CurrentCultureIgnoreCase) < 1);
if (!ok)
{
return false;
}
}
return true;
}