mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Fixed bug in history check.
This commit is contained in:
parent
54d1d5e379
commit
4c8b1d9604
2 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue