preserve shortcut children

pull/702/head
Luke Pulverenti 9 years ago
parent 02398e7789
commit 371e78a396

@ -47,7 +47,11 @@ namespace MediaBrowser.Providers.BoxSets
if (mergeMetadataSettings) if (mergeMetadataSettings)
{ {
targetItem.LinkedChildren = sourceItem.LinkedChildren; // Retain shortcut children
var linkedChildren = sourceItem.LinkedChildren.ToList();
linkedChildren.AddRange(sourceItem.LinkedChildren.Where(i => i.Type == LinkedChildType.Shortcut));
targetItem.LinkedChildren = linkedChildren;
targetItem.Shares = sourceItem.Shares; targetItem.Shares = sourceItem.Shares;
} }
} }

Loading…
Cancel
Save