mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
update persons service
This commit is contained in:
parent
91600b1c81
commit
752cf08e5c
@ -109,6 +109,11 @@ namespace MediaBrowser.Api.UserLibrary
|
||||
NameContains = query.NameContains ?? query.SearchTerm
|
||||
});
|
||||
|
||||
if (query.IsFavorite ?? false && query.User != null)
|
||||
{
|
||||
items = items.Where(i => UserDataRepository.GetUserData(query.User, i).IsFavorite).ToList();
|
||||
}
|
||||
|
||||
return new QueryResult<(BaseItem, ItemCounts)>
|
||||
{
|
||||
TotalRecordCount = items.Count,
|
||||
|
Loading…
Reference in New Issue
Block a user