Fixed: Custom Format Compare not using Id value

Fixes #3954
pull/2/head
Qstick 5 years ago
parent d4422e8901
commit 5d2ac0b86b

@ -100,7 +100,7 @@ namespace NzbDrone.Core.Qualities
left = left.WithNone();
var leftIndicies = GetIndicies(left, _profile);
var rightIndex = _profile.FormatItems.FindIndex(v => Equals(v.Format, right));
var rightIndex = _profile.FormatItems.FindIndex(v => Equals(v.Format.Id, right));
return leftIndicies.Select(i => i.CompareTo(rightIndex)).Sum();
}

Loading…
Cancel
Save