mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 01:01:34 +02:00
Fixed bug in history check.
This commit is contained in:
@@ -49,8 +49,8 @@ namespace NzbDrone.Core.Providers
|
||||
|
||||
public virtual Quality GetBestQualityInHistory(long episodeId)
|
||||
{
|
||||
var history = AllItems().Where(c => c.EpisodeId == episodeId).Select(d => new Quality() { QualityType = d.Quality, Proper = d.IsProper }).ToList();
|
||||
history.Sort();
|
||||
var history = AllItems().Where(c => c.EpisodeId == episodeId).ToList().Select(d => new Quality(d.Quality, d.IsProper));
|
||||
history.OrderBy(q => q);
|
||||
return history.FirstOrDefault();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user