mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
Fix metadata merge for BoxSets (#12583)
This commit is contained in:
@@ -53,9 +53,16 @@ namespace MediaBrowser.Providers.BoxSets
|
|||||||
var targetItem = target.Item;
|
var targetItem = target.Item;
|
||||||
|
|
||||||
if (mergeMetadataSettings)
|
if (mergeMetadataSettings)
|
||||||
|
{
|
||||||
|
if (replaceData || targetItem.LinkedChildren.Length == 0)
|
||||||
{
|
{
|
||||||
targetItem.LinkedChildren = sourceItem.LinkedChildren;
|
targetItem.LinkedChildren = sourceItem.LinkedChildren;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
targetItem.LinkedChildren = sourceItem.LinkedChildren.Concat(targetItem.LinkedChildren).Distinct().ToArray();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
Reference in New Issue
Block a user