From aa52a833955e95d9a43ccd316685f56d59102e03 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Tue, 24 Feb 2015 20:12:32 +0100 Subject: [PATCH] Fixed: Preferring season packs over single episodes before comparing relative sizes. --- .../DecisionEngine/DownloadDecisionPriorizationService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionPriorizationService.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionPriorizationService.cs index 3bf52ae29..c130f0a25 100644 --- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionPriorizationService.cs +++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionPriorizationService.cs @@ -35,6 +35,7 @@ public List PrioritizeDecisions(List decisio .OrderByDescending(c => c.RemoteEpisode.ParsedEpisodeInfo.Quality, new QualityModelComparer(series.Profile)) .ThenBy(c => c.RemoteEpisode.Episodes.Select(e => e.EpisodeNumber).MinOrDefault()) .ThenBy(c => PrioritizeDownloadProtocol(series, c.RemoteEpisode.Release.DownloadProtocol)) + .ThenByDescending(c => c.RemoteEpisode.Episodes.Count) .ThenBy(c => c.RemoteEpisode.Release.Size.Round(200.Megabytes()) / Math.Max(1, c.RemoteEpisode.Episodes.Count)) .ThenByDescending(c => TorrentInfo.GetSeeders(c.RemoteEpisode.Release)) .ThenBy(c => c.RemoteEpisode.Release.Age);