Fix latest items for mixed libraries

This commit is contained in:
theguymadmax
2026-08-19 18:12:10 -04:00
parent 19d919f8be
commit 80fe8c67e9
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);