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 @@ namespace NzbDrone.Core.Providers
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 @@ namespace NzbDrone.Web.Controllers
public ActionResult Index()
{
var upcomingEpisodes = GetUpcomingEpisodeModels(_upcomingEpisodesProvider.RecentEpisodes());
var upcomingEpisodes = GetUpcomingEpisodeModels(_upcomingEpisodesProvider.UpcomingEpisodes());
var upcoming = new UpcomingEpisodesModel