fix ExcludeLocationTypes

This commit is contained in:
Luke Pulverenti 2016-03-20 23:14:39 -04:00
parent d4870e788a
commit dfafa98da3

View file

@ -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;