The Free Software Media System - Server Backend & API
Fix collection behavior when sorting by rating or runtime (#14148)
theguymadmaxc3762186da06
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex 4da22854b2..e0c3b0a938 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -1222,11 +1222,6 @@ namespace MediaBrowser.Controller.Entitiesreturn false;}- if (request.IsPlayed.HasValue)- {- return false;- }-if (!string.IsNullOrWhiteSpace(request.Person)){return false;@@ -1267,17 +1262,15 @@ namespace MediaBrowser.Controller.Entitiesreturn false;}- if (request.MinCommunityRating.HasValue)- {- return false;- }-- if (request.MinCriticRating.HasValue)+ if (request.MinIndexNumber.HasValue){return false;}- if (request.MinIndexNumber.HasValue)+ if (request.OrderBy.Any(o =>+ o.OrderBy == ItemSortBy.CommunityRating ||+ o.OrderBy == ItemSortBy.CriticRating ||+ o.OrderBy == ItemSortBy.Runtime)){return false;}