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