1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Fixed: Custom Format Compare not using Id value

Fixes #3954
This commit is contained in:
Qstick 2019-12-16 20:58:49 -05:00
parent d4422e8901
commit 5d2ac0b86b

View File

@ -100,7 +100,7 @@ public int Compare(List<CustomFormat> left, int right)
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();
}