Skip to content

Commit 19e8976

Browse files
committed
fix: linked items are still duplicated.
I don't even know, dude. Something about either this or PresentationUniqueKey is case-sensitive. Closes #1
1 parent e29391e commit 19e8976

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Jellyfin.Plugin.DoViRemux/MergeVersionsPostScanTask.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public async Task Run(IProgress<double> progress, CancellationToken cancellation
4141
item.Id,
4242
remuxedItem.Id);
4343

44-
remuxedItem.SetPrimaryVersionId(item.Id.ToString());
44+
// Making it uppercase is important; otherwise, the linked items
45+
// will still be duplicated (this took 3 hours to figure out)
46+
remuxedItem.SetPrimaryVersionId(item.Id.ToString("N"));
4547
await remuxedItem.UpdateToRepositoryAsync(ItemUpdateType.MetadataEdit, cancellationToken);
4648
}
4749
}

0 commit comments

Comments
 (0)