Update Jellyfin.Api/Controllers/FilterController.cs

Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
pull/3269/head
Cody Robibero 5 years ago committed by GitHub
parent 6f64e48c54
commit 393f5f0c25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -195,10 +195,10 @@ namespace Jellyfin.Api.Controllers
genreQuery.Parent = parentItem;
}
if (string.Equals(includeItemTypes, nameof(MusicAlbum), StringComparison.OrdinalIgnoreCase) ||
string.Equals(includeItemTypes, nameof(MusicVideo), StringComparison.OrdinalIgnoreCase) ||
string.Equals(includeItemTypes, nameof(MusicArtist), StringComparison.OrdinalIgnoreCase) ||
string.Equals(includeItemTypes, nameof(Audio), StringComparison.OrdinalIgnoreCase))
if (string.Equals(includeItemTypes, nameof(MusicAlbum), StringComparison.OrdinalIgnoreCase)
|| string.Equals(includeItemTypes, nameof(MusicVideo), StringComparison.OrdinalIgnoreCase)
|| string.Equals(includeItemTypes, nameof(MusicArtist), StringComparison.OrdinalIgnoreCase)
|| string.Equals(includeItemTypes, nameof(Audio), StringComparison.OrdinalIgnoreCase))
{
filters.Genres = _libraryManager.GetMusicGenres(genreQuery).Items.Select(i => new NameGuidPair
{

Loading…
Cancel
Save