diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-05-24 18:26:21 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-05-24 18:26:21 +0200 |
| commit | cb9d6e9884d3b952321736392801743198b0ccd9 (patch) | |
| tree | 20d5c3e533f1447ceb0d1c6413d831f075702828 /MediaBrowser.Controller/Library | |
| parent | 11758461200c7b369dd23db5ac7c9f232a87cf21 (diff) | |
Add batch method for people names
Diffstat (limited to 'MediaBrowser.Controller/Library')
| -rw-r--r-- | MediaBrowser.Controller/Library/ILibraryManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index f4c2196400..d794205f00 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -598,6 +598,14 @@ namespace MediaBrowser.Controller.Library IReadOnlyList<string> GetPeopleNames(InternalPeopleQuery query); /// <summary> + /// Gets the people names per item for a batch of item IDs in a single DB round-trip. + /// </summary> + /// <param name="itemIds">The item IDs to look up.</param> + /// <param name="personTypes">Optional person types to include. Empty for all.</param> + /// <returns>Dictionary keyed by item id; values are the per-item people names. Items with no people are absent.</returns> + IReadOnlyDictionary<Guid, IReadOnlyList<string>> GetPeopleNamesByItem(IReadOnlyList<Guid> itemIds, IReadOnlyList<string> personTypes); + + /// <summary> /// Queries the items. /// </summary> /// <param name="query">The query.</param> |
