mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
Fix TotalRecordCount calculation
This commit is contained in:
@@ -1264,7 +1264,14 @@ namespace Emby.Server.Implementations.Library
|
||||
AddUserToQuery(query, query.User, allowExternalContent);
|
||||
}
|
||||
|
||||
return _itemRepository.GetItemList(query);
|
||||
var itemList = _itemRepository.GetItemList(query);
|
||||
var user = query.User;
|
||||
if (user is not null)
|
||||
{
|
||||
return itemList.Where(i => i.IsVisible(user)).ToList();
|
||||
}
|
||||
|
||||
return itemList;
|
||||
}
|
||||
|
||||
public List<BaseItem> GetItemList(InternalItemsQuery query)
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Emby.Server.Implementations.Playlists
|
||||
|
||||
query.Recursive = true;
|
||||
query.IncludeItemTypes = new[] { BaseItemKind.Playlist };
|
||||
return LibraryManager.GetItemsResult(query);
|
||||
return QueryWithPostFiltering2(query);
|
||||
}
|
||||
|
||||
public override string GetClientTypeName()
|
||||
|
||||
Reference in New Issue
Block a user