From 59cd5f983bc30a468481543e2cc52575cfe3d818 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Mon, 7 Sep 2026 10:30:01 +0200 Subject: Expose optimized ItemCounts for byName items --- MediaBrowser.Controller/Persistence/IItemCountService.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'MediaBrowser.Controller/Persistence/IItemCountService.cs') diff --git a/MediaBrowser.Controller/Persistence/IItemCountService.cs b/MediaBrowser.Controller/Persistence/IItemCountService.cs index 8ddf93e3e0..20b5cbe603 100644 --- a/MediaBrowser.Controller/Persistence/IItemCountService.cs +++ b/MediaBrowser.Controller/Persistence/IItemCountService.cs @@ -36,6 +36,16 @@ public interface IItemCountService /// The item counts grouped by type. ItemCounts GetItemCountsForNameItem(BaseItemKind kind, Guid id, BaseItemKind[] relatedItemKinds, InternalItemsQuery accessFilter); + /// + /// Gets item counts for several "by-name" items of the same kind in one query. + /// + /// The kind of the name items. + /// The IDs of the name items. + /// The item kinds to count. + /// A pre-configured query with user access filtering settings. + /// The item counts of each requested id. + Dictionary GetItemCountsForNameItems(BaseItemKind kind, IReadOnlyList ids, BaseItemKind[] relatedItemKinds, InternalItemsQuery accessFilter); + /// /// Gets the count of played items that are descendants of the specified ancestor. /// -- cgit v1.2.3