Skip to content

Commit

Permalink
Fixed issue danieladov#48
Browse files Browse the repository at this point in the history
  • Loading branch information
morski committed May 14, 2024
1 parent a223b41 commit eb5870b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jellyfin.Plugin.MergeVersions/MergeVersionsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ private async Task MergeVersions(List<Guid> ids)
.First();
}

var alternateVersionsOfPrimary = primaryVersion.LinkedAlternateVersions.ToList();
var alternateVersionsOfPrimary = primaryVersion
.LinkedAlternateVersions.Where(l => items.Any(i => i.Path == l.Path))
.ToList();

foreach (var item in items.Where(i => !i.Id.Equals(primaryVersion.Id)))
{
Expand Down

0 comments on commit eb5870b

Please sign in to comment.