Fix metadata merge for BoxSets (#12583)

This commit is contained in:
Tim Eisele 2024-09-20 15:46:44 +02:00 committed by GitHub
parent 41fb696ef6
commit 9ff7575c85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,14 @@ namespace MediaBrowser.Providers.BoxSets
if (mergeMetadataSettings)
{
targetItem.LinkedChildren = sourceItem.LinkedChildren;
if (replaceData || targetItem.LinkedChildren.Length == 0)
{
targetItem.LinkedChildren = sourceItem.LinkedChildren;
}
else
{
targetItem.LinkedChildren = sourceItem.LinkedChildren.Concat(targetItem.LinkedChildren).Distinct().ToArray();
}
}
}