mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-03 23:36:38 +01:00
Fix LinkedChildren rerouting on primary version demotion
This commit is contained in:
@@ -588,6 +588,9 @@ namespace MediaBrowser.Controller.Entities
|
||||
oldPrimary.SetPrimaryVersionId(newPrimary.Id);
|
||||
oldPrimary.OwnerId = newPrimary.Id;
|
||||
await oldPrimary.UpdateToRepositoryAsync(ItemUpdateType.MetadataEdit, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
// Re-route playlist/collection references from old primary to new primary
|
||||
LibraryManager.RerouteLinkedChildReferences(oldPrimary.Id, newPrimary.Id);
|
||||
}
|
||||
|
||||
// After removing items, reattach any detached user data to remaining children
|
||||
|
||||
Reference in New Issue
Block a user