1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00

Episode searches will be done in ascending order now.

This commit is contained in:
Mark McDowall 2012-05-17 20:10:33 -07:00
parent 3fdfa69b94
commit 19ffd77754
2 changed files with 4 additions and 2 deletions

View File

@ -262,7 +262,9 @@ public List<SearchHistoryItem> ProcessSearchResults(ProgressNotification notific
var items = new List<SearchHistoryItem>();
searchResult.Successes = new List<int>();
foreach (var episodeParseResult in reports.OrderByDescending(c => c.Quality).ThenBy(c => c.Age))
foreach (var episodeParseResult in reports.OrderByDescending(c => c.Quality)
.ThenBy(c => c.EpisodeNumbers.Min())
.ThenBy(c => c.Age))
{
try
{

View File

@ -23,7 +23,7 @@ public UpcomingController(UpcomingEpisodesProvider upcomingEpisodesProvider)
public ActionResult Index()
{
var upcomingEpisodes = GetUpcomingEpisodeModels(_upcomingEpisodesProvider.RecentEpisodes());
var upcomingEpisodes = GetUpcomingEpisodeModels(_upcomingEpisodesProvider.UpcomingEpisodes());
var upcoming = new UpcomingEpisodesModel