Browse Source

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

Co-authored-by: Max <no@example.com>
theguymadmax 1 week ago
parent
commit
c3762186da
1 changed files with 5 additions and 12 deletions
  1. 5 12
      MediaBrowser.Controller/Entities/Folder.cs

+ 5 - 12
MediaBrowser.Controller/Entities/Folder.cs

@@ -1222,11 +1222,6 @@ namespace MediaBrowser.Controller.Entities
                 return false;
             }
 
-            if (request.IsPlayed.HasValue)
-            {
-                return false;
-            }
-
             if (!string.IsNullOrWhiteSpace(request.Person))
             {
                 return false;
@@ -1267,17 +1262,15 @@ namespace MediaBrowser.Controller.Entities
                 return 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;
             }