Merge pull request #17678 from theguymadmax/fix-mixed-latest-items

Fix latest items for mixed libraries
This commit is contained in:
Cody Robibero
2026-08-22 08:42:38 -04:00
committed by GitHub
2 changed files with 52 additions and 16 deletions
@@ -396,6 +396,12 @@ namespace Emby.Server.Implementations.Library
query.Limit = limit;
return _libraryManager.GetLatestItemList(query, parents, CollectionType.movies);
}
if (collectionType is null)
{
query.Limit = limit;
return _libraryManager.GetLatestItemList(query, parents, CollectionType.unknown);
}
}
return _libraryManager.GetItemList(query, parents);