Skip to content

Commit

Permalink
Fix metadata merge for BoxSets (jellyfin#12583)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowghost authored Sep 20, 2024
1 parent 41fb696 commit 9ff7575
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MediaBrowser.Providers/BoxSets/BoxSetMetadataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ protected override void MergeData(MetadataResult<BoxSet> source, MetadataResult<

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();
}
}
}

Expand Down

0 comments on commit 9ff7575

Please sign in to comment.