mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
update search
This commit is contained in:
@@ -354,6 +354,10 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
return;
|
||||
}
|
||||
}
|
||||
//if (!(item is Folder))
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
LibraryItemsCache.AddOrUpdate(id, item, delegate { return item; });
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user