The Free Software Media System - Server Backend & API
Fix large playlist persistence
martin-777c148c3c7c0a
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex ace97d191f..f6a725853d 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -238,6 +238,7 @@- [elio42](https://github.com/elio42)- [rwebster85](https://github.com/rwebster85)- [Florin-Popescu](https://github.com/Florin-Popescu)+ - [martin-77](https://github.com/martin-77)# Emby Contributorsdiff --git a/Jellyfin.Server.Implementations/Item/ItemPersistenceService.cs b/Jellyfin.Server.Implementations/Item/ItemPersistenceService.csindex 3585f85c61..efff3457a3 100644--- a/Jellyfin.Server.Implementations/Item/ItemPersistenceService.cs+++ b/Jellyfin.Server.Implementations/Item/ItemPersistenceService.cs@@ -538,7 +538,7 @@ public class ItemPersistenceService : IItemPersistenceServicevar childIdsToCheck = resolvedChildren.Select(c => c.ChildId).Distinct().ToList();var existingChildIds = childIdsToCheck.Count > 0? context.BaseItems- .Where(e => childIdsToCheck.Contains(e.Id))+ .WhereOneOrMany(childIdsToCheck, e => e.Id).Select(e => e.Id).ToHashSet(): [];