diff options
| author | JQ <81431263+scampower3@users.noreply.github.com> | 2025-03-27 10:26:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-26 20:26:47 -0600 |
| commit | d06ce1f1e035d4630121f45dcadbdebc95cb07e2 (patch) | |
| tree | 231b0acda3903f266acdca4a42eaaaf6a18af0b2 /MediaBrowser.Controller/Library | |
| parent | cafb7cd002e4214643dcdb5e5592d6c5a811ca1c (diff) | |
Fix only returning one item from /Item/Latest api. (#12492)
* Updated to EFcore
* Remove unused using
* Dont use DateCreated not from episode type or music type
* use TranslateQuery to filter out instead and then do the grouping and retrival of min and max datecreated instead
* Album also
Diffstat (limited to 'MediaBrowser.Controller/Library')
| -rw-r--r-- | MediaBrowser.Controller/Library/ILibraryManager.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index a3e3e4991..df90f546c 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -568,6 +568,15 @@ namespace MediaBrowser.Controller.Library IReadOnlyList<BaseItem> GetItemList(InternalItemsQuery query, List<BaseItem> parents); /// <summary> + /// Gets the TVShow/Album items for Latest api. + /// </summary> + /// <param name="query">The query to use.</param> + /// <param name="parents">Items to use for query.</param> + /// <param name="collectionType">Collection Type.</param> + /// <returns>List of items.</returns> + IReadOnlyList<BaseItem> GetLatestItemList(InternalItemsQuery query, IReadOnlyList<BaseItem> parents, CollectionType collectionType); + + /// <summary> /// Gets the list of series presentation keys for next up. /// </summary> /// <param name="query">The query to use.</param> |
