From 120a75ed8ec8dcff4cffb8c79eb54a11b7fb9afe Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 5 Jun 2011 12:55:46 -0700 Subject: [PATCH] Fixed history again. --- NzbDrone.Core/Providers/HistoryProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NzbDrone.Core/Providers/HistoryProvider.cs b/NzbDrone.Core/Providers/HistoryProvider.cs index b639eebe2..1074f1740 100644 --- a/NzbDrone.Core/Providers/HistoryProvider.cs +++ b/NzbDrone.Core/Providers/HistoryProvider.cs @@ -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(); }