|
|
|
@ -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();
|
|
|
|
|
}
|
|
|
|
|