aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/Library/ILibraryManager.cs14
-rw-r--r--MediaBrowser.Controller/Persistence/IItemRepository.cs14
2 files changed, 28 insertions, 0 deletions
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
@@ -851,6 +851,20 @@ namespace MediaBrowser.Controller.Library
QueryFiltersLegacy GetQueryFiltersLegacy(InternalItemsQuery query);
/// <summary>
+ /// Gets the distinct, sorted production years of the matching items.
+ /// </summary>
+ /// <param name="query">The query filter.</param>
+ /// <returns>The production years.</returns>
+ IReadOnlyList<int> GetYears(InternalItemsQuery query);
+
+ /// <summary>
+ /// Gets the distinct, sorted official ratings of the matching items.
+ /// </summary>
+ /// <param name="query">The query filter.</param>
+ /// <returns>The official ratings.</returns>
+ IReadOnlyList<string> GetOfficialRatings(InternalItemsQuery query);
+
+ /// <summary>
/// Gets a list of all distinct tags of the matching items.
/// </summary>
/// <param name="query">The query filter.</param>
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
@@ -149,6 +149,20 @@ public interface IItemRepository
QueryFiltersLegacy GetQueryFiltersLegacy(InternalItemsQuery filter);
/// <summary>
+ /// Gets the distinct, sorted production years of the matching items.
+ /// </summary>
+ /// <param name="filter">The query filter.</param>
+ /// <returns>The production years.</returns>
+ IReadOnlyList<int> GetYears(InternalItemsQuery filter);
+
+ /// <summary>
+ /// Gets the distinct, sorted official ratings of the matching items.
+ /// </summary>
+ /// <param name="filter">The query filter.</param>
+ /// <returns>The official ratings.</returns>
+ IReadOnlyList<string> GetOfficialRatings(InternalItemsQuery filter);
+
+ /// <summary>
/// Gets whether all children of the requested item have been played.
/// </summary>
/// <param name="user">The user to check against.</param>