1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-28 23:16:32 -04:00
This commit is contained in:
Qstick
2021-08-03 00:43:28 -04:00
committed by Mark McDowall
parent 878d1561aa
commit 1c22a1ec0d
1201 changed files with 5620 additions and 4303 deletions
@@ -55,7 +55,7 @@ namespace NzbDrone.Core.DecisionEngine
private int CompareByReverse<TSubject, TValue>(TSubject left, TSubject right, Func<TSubject, TValue> funcValue)
where TValue : IComparable<TValue>
{
return CompareBy(left, right, funcValue)*-1;
return CompareBy(left, right, funcValue) * -1;
}
private int CompareAll(params int[] comparers)
@@ -77,8 +77,7 @@ namespace NzbDrone.Core.DecisionEngine
return CompareAll(
CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.Series.QualityProfile.Value.GetIndex(remoteEpisode.ParsedEpisodeInfo.Quality.Quality)),
CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.ParsedEpisodeInfo.Quality.Revision)
);
CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.ParsedEpisodeInfo.Quality.Revision));
}
private int CompareLanguage(DownloadDecision x, DownloadDecision y)
@@ -105,7 +104,8 @@ namespace NzbDrone.Core.DecisionEngine
private int CompareEpisodeCount(DownloadDecision x, DownloadDecision y)
{
var seasonPackCompare = CompareBy(x.RemoteEpisode, y.RemoteEpisode,
var seasonPackCompare = CompareBy(x.RemoteEpisode,
y.RemoteEpisode,
remoteEpisode => remoteEpisode.ParsedEpisodeInfo.FullSeason);
if (seasonPackCompare != 0)