1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-25 09:18:34 +00:00

Fixed: Quality Profile group order no longer used when ordering results

This commit is contained in:
Mark McDowall 2019-01-30 18:23:11 -08:00
parent 08b65a954d
commit b8b82189f7

View file

@ -26,12 +26,12 @@ namespace NzbDrone.Core.Profiles.Qualities
return lastAllowed.Items.Last().Quality;
}
public QualityIndex GetIndex(Quality quality)
public QualityIndex GetIndex(Quality quality, bool respectGroupOrder = false)
{
return GetIndex(quality.Id);
return GetIndex(quality.Id, respectGroupOrder);
}
public QualityIndex GetIndex(int id)
public QualityIndex GetIndex(int id, bool respectGroupOrder = false)
{
for (var i = 0; i < Items.Count; i++)
{
@ -56,7 +56,7 @@ namespace NzbDrone.Core.Profiles.Qualities
if (groupItem.Quality.Id == id)
{
return new QualityIndex(i, g);
return respectGroupOrder ? new QualityIndex(i, g) : new QualityIndex(i);
}
}
}