mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 22:17:25 -04:00
Fix metadata merge for BoxSets (#12583)
This commit is contained in:
parent
41fb696ef6
commit
9ff7575c85
1 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue