1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 17:47:08 +00:00

Fixed history again.

This commit is contained in:
kay.one 2011-06-05 12:55:46 -07:00
parent fa5b6bf9cc
commit 120a75ed8e

View file

@ -49,7 +49,7 @@ public virtual void Add(History item)
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();
}