Fixed history order bug.

pull/3113/head
kay.one 14 years ago
parent 4c8b1d9604
commit fa5b6bf9cc

@ -49,8 +49,8 @@ namespace NzbDrone.Core.Providers
public virtual Quality GetBestQualityInHistory(long episodeId)
{
var history = AllItems().Where(c => c.EpisodeId == episodeId).ToList().Select(d => new Quality(d.Quality, d.IsProper));
history.OrderBy(q => q);
var history = AllItems().Where(c => c.EpisodeId == episodeId).Select(d => new Quality(d.Quality, d.IsProper)).OrderBy(c => c);
return history.FirstOrDefault();
}

Loading…
Cancel
Save