mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 01:37:07 +00:00
Fixed: Quality Profile group order no longer used when ordering results
This commit is contained in:
parent
08b65a954d
commit
b8b82189f7
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue