mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Rename preview shows same order as series details (descending)
This commit is contained in:
parent
4f669fbbd4
commit
f5de5c3a24
@ -56,8 +56,8 @@ public List<RenameEpisodeFilePreview> GetRenamePreviews(int seriesId)
|
||||
var files = _mediaFileService.GetFilesBySeries(seriesId);
|
||||
|
||||
return GetPreviews(series, episodes, files)
|
||||
.OrderBy(e => e.SeasonNumber)
|
||||
.ThenBy(e => e.EpisodeNumbers.First())
|
||||
.OrderByDescending(e => e.SeasonNumber)
|
||||
.ThenByDescending(e => e.EpisodeNumbers.First())
|
||||
.ToList();
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ public List<RenameEpisodeFilePreview> GetRenamePreviews(int seriesId, int season
|
||||
var files = _mediaFileService.GetFilesBySeason(seriesId, seasonNumber);
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user