Fix collection behavior when sorting by rating or runtime (#14148)

Co-authored-by: Max <no@example.com>
This commit is contained in:
theguymadmax 2025-05-22 09:05:14 -04:00 committed by GitHub
parent 44981cd823
commit c3762186da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1222,11 +1222,6 @@ namespace MediaBrowser.Controller.Entities
return false;
}
if (request.IsPlayed.HasValue)
{
return false;
}
if (!string.IsNullOrWhiteSpace(request.Person))
{
return false;
@ -1267,21 +1262,19 @@ namespace MediaBrowser.Controller.Entities
return false;
}
if (request.MinCommunityRating.HasValue)
{
return false;
}
if (request.MinCriticRating.HasValue)
{
return false;
}
if (request.MinIndexNumber.HasValue)
{
return false;
}
if (request.OrderBy.Any(o =>
o.OrderBy == ItemSortBy.CommunityRating ||
o.OrderBy == ItemSortBy.CriticRating ||
o.OrderBy == ItemSortBy.Runtime))
{
return false;
}
return true;
}