update search

This commit is contained in:
Luke Pulverenti
2017-05-06 16:21:08 -04:00
parent 4764e39247
commit 384a35d878
3 changed files with 15 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ namespace Emby.Server.Implementations.Library
var hints = new List<Tuple<BaseItem, string, int>>();
var excludeItemTypes = new List<string>();
var excludeItemTypes = query.ExcludeItemTypes.ToList();
var includeItemTypes = (query.IncludeItemTypes ?? new string[] { }).ToList();
excludeItemTypes.Add(typeof(Year).Name);
@@ -174,7 +174,8 @@ namespace Emby.Server.Implementations.Library
IsMovie = query.IsMovie,
IsNews = query.IsNews,
IsSeries = query.IsSeries,
IsSports = query.IsSports
IsSports = query.IsSports,
MediaTypes = query.MediaTypes
});
// Add search hints based on item name