Episode searches will be done in ascending order now.

pull/4/head
Mark McDowall 13 years ago
parent 3fdfa69b94
commit 19ffd77754

@ -262,7 +262,9 @@ namespace NzbDrone.Core.Providers
var items = new List<SearchHistoryItem>(); var items = new List<SearchHistoryItem>();
searchResult.Successes = new List<int>(); 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 try
{ {

@ -23,7 +23,7 @@ namespace NzbDrone.Web.Controllers
public ActionResult Index() public ActionResult Index()
{ {
var upcomingEpisodes = GetUpcomingEpisodeModels(_upcomingEpisodesProvider.RecentEpisodes()); var upcomingEpisodes = GetUpcomingEpisodeModels(_upcomingEpisodesProvider.UpcomingEpisodes());
var upcoming = new UpcomingEpisodesModel var upcoming = new UpcomingEpisodesModel

Loading…
Cancel
Save