mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #12492] [MERGED] Fix only returning one item from /Item/Latest api. #13220
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/12492
Author: @scampower3
Created: 8/21/2024
Status: ✅ Merged
Merged: 3/27/2025
Merged by: @crobibero
Base:
master← Head:Home-screen-section-fix📝 Commits (5)
04f6c5aUpdated to EFcored0d8625Remove unused usingd82910fDont use DateCreated not from episode type or music type892b046use TranslateQuery to filter out instead and then do the grouping and retrival of min and max datecreated insteadb356354Album also📊 Changes
5 files changed (+90 additions, -0 deletions)
View changed files
📝
Emby.Server.Implementations/Library/LibraryManager.cs(+15 -0)📝
Emby.Server.Implementations/Library/UserViewManager.cs(+15 -0)📝
Jellyfin.Server.Implementations/Item/BaseItemRepository.cs(+42 -0)📝
MediaBrowser.Controller/Library/ILibraryManager.cs(+9 -0)📝
MediaBrowser.Controller/Persistence/IItemRepository.cs(+9 -0)📄 Description
Changes
Adds an extra function to the SqliteItemRepository to do a sub query to get the top N number of unique series/albums names sorted by datecreated. The min value of the datecreated from the subquery is then used to retrieve the rows for use for the /item/latest api.
Issues
Fixes https://github.com/jellyfin/jellyfin/issues/10993
Fixes https://github.com/jellyfin/jellyfin/issues/1880
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.