Hopefully fix download ordering.

This commit is contained in:
Leonardo Galli 2017-01-17 23:30:11 +01:00 committed by GitHub
parent 864b441d8e
commit 3ce8232777
1 changed files with 2 additions and 2 deletions

View File

@ -34,11 +34,11 @@ namespace NzbDrone.Core.DecisionEngine
public List<DownloadDecision> PrioritizeDecisionsForMovies(List<DownloadDecision> decisions)
{
return decisions.Where(c => c.RemoteMovie.Movie != null)
/*.GroupBy(c => c.RemoteMovie.Movie.Id, (movieId, downloadDecisions) =>
.GroupBy(c => c.RemoteMovie.Movie.Id, (movieId, downloadDecisions) =>
{
return downloadDecisions.OrderByDescending(decision => decision, new DownloadDecisionComparer(_delayProfileService));
})
.SelectMany(c => c)*/
.SelectMany(c => c)
.Union(decisions.Where(c => c.RemoteMovie.Movie == null))
.ToList();
}