|
|
@ -56,8 +56,8 @@ namespace NzbDrone.Core.MediaFiles
|
|
|
|
var files = _mediaFileService.GetFilesBySeries(seriesId);
|
|
|
|
var files = _mediaFileService.GetFilesBySeries(seriesId);
|
|
|
|
|
|
|
|
|
|
|
|
return GetPreviews(series, episodes, files)
|
|
|
|
return GetPreviews(series, episodes, files)
|
|
|
|
.OrderBy(e => e.SeasonNumber)
|
|
|
|
.OrderByDescending(e => e.SeasonNumber)
|
|
|
|
.ThenBy(e => e.EpisodeNumbers.First())
|
|
|
|
.ThenByDescending(e => e.EpisodeNumbers.First())
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -68,7 +68,7 @@ namespace NzbDrone.Core.MediaFiles
|
|
|
|
var files = _mediaFileService.GetFilesBySeason(seriesId, seasonNumber);
|
|
|
|
var files = _mediaFileService.GetFilesBySeason(seriesId, seasonNumber);
|
|
|
|
|
|
|
|
|
|
|
|
return GetPreviews(series, episodes, files)
|
|
|
|
return GetPreviews(series, episodes, files)
|
|
|
|
.OrderBy(e => e.EpisodeNumbers.First()).ToList();
|
|
|
|
.OrderByDescending(e => e.EpisodeNumbers.First()).ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private IEnumerable<RenameEpisodeFilePreview> GetPreviews(Series series, List<Episode> episodes, List<EpisodeFile> files)
|
|
|
|
private IEnumerable<RenameEpisodeFilePreview> GetPreviews(Series series, List<Episode> episodes, List<EpisodeFile> files)
|
|
|
|