update search

This commit is contained in:
Luke Pulverenti
2015-09-23 22:31:40 -04:00
parent e429b42146
commit 4e90d73203
5 changed files with 31 additions and 10 deletions

View File

@@ -354,6 +354,10 @@ namespace MediaBrowser.Server.Implementations.Library
return;
}
}
//if (!(item is Folder))
//{
// return;
//}
LibraryItemsCache.AddOrUpdate(id, item, delegate { return item; });
}

View File

@@ -1202,6 +1202,12 @@ namespace MediaBrowser.Server.Implementations.Persistence
whereClauses.Add(string.Format("ChannelId in ({0})", inClause));
}
if (query.ParentId.HasValue)
{
whereClauses.Add("ParentId=@ParentId");
cmd.Parameters.Add(cmd, "@ParentId", DbType.Guid).Value = query.ParentId.Value;
}
if (query.MinEndDate.HasValue)
{
whereClauses.Add("EndDate>=@MinEndDate");