From 2cfcb9ac0cfae50aa1a5be456fa6178cb4a2aaef Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Thu, 12 Nov 2026 00:42:03 -0500 Subject: Years, Ratings for filters endpoints --- MediaBrowser.Controller/Library/ILibraryManager.cs | 14 ++++++++++++++ MediaBrowser.Controller/Persistence/IItemRepository.cs | 14 ++++++++++++++ 2 files changed, 28 insertions(+) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index ae15c75350..8d00858b37 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -850,6 +850,20 @@ namespace MediaBrowser.Controller.Library /// Aggregated filter values. QueryFiltersLegacy GetQueryFiltersLegacy(InternalItemsQuery query); + /// + /// Gets the distinct, sorted production years of the matching items. + /// + /// The query filter. + /// The production years. + IReadOnlyList GetYears(InternalItemsQuery query); + + /// + /// Gets the distinct, sorted official ratings of the matching items. + /// + /// The query filter. + /// The official ratings. + IReadOnlyList GetOfficialRatings(InternalItemsQuery query); + /// /// Gets a list of all distinct tags of the matching items. /// diff --git a/MediaBrowser.Controller/Persistence/IItemRepository.cs b/MediaBrowser.Controller/Persistence/IItemRepository.cs index 3cf06b897c..69c74d3757 100644 --- a/MediaBrowser.Controller/Persistence/IItemRepository.cs +++ b/MediaBrowser.Controller/Persistence/IItemRepository.cs @@ -148,6 +148,20 @@ public interface IItemRepository /// Aggregated filter values. QueryFiltersLegacy GetQueryFiltersLegacy(InternalItemsQuery filter); + /// + /// Gets the distinct, sorted production years of the matching items. + /// + /// The query filter. + /// The production years. + IReadOnlyList GetYears(InternalItemsQuery filter); + + /// + /// Gets the distinct, sorted official ratings of the matching items. + /// + /// The query filter. + /// The official ratings. + IReadOnlyList GetOfficialRatings(InternalItemsQuery filter); + /// /// Gets whether all children of the requested item have been played. /// -- cgit v1.2.3