Fixed history again.

pull/4/head
kay.one 14 years ago
parent fa5b6bf9cc
commit 120a75ed8e

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

Loading…
Cancel
Save