Explorar el Código

fix ExcludeLocationTypes

Luke Pulverenti hace 9 años
padre
commit
dfafa98da3
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      MediaBrowser.Controller/Entities/UserViewBuilder.cs

+ 5 - 0
MediaBrowser.Controller/Entities/UserViewBuilder.cs

@@ -1199,6 +1199,11 @@ namespace MediaBrowser.Controller.Entities
                 return false;
             }
 
+            if (query.ExcludeLocationTypes.Length > 0 && query.ExcludeLocationTypes.Contains(item.LocationType))
+            {
+                return false;
+            }
+
             if (query.IsFolder.HasValue && query.IsFolder.Value != item.IsFolder)
             {
                 return false;