1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-25 17:27:59 +00:00

Fixed: Import episodes in season packs in numerical order

Closes #1485
This commit is contained in:
Mark McDowall 2016-10-04 10:20:48 -07:00
parent 50a0e9514e
commit ff33f15bac

View file

@ -56,7 +56,7 @@ public List<ImportResult> Import(List<ImportDecision> decisions, bool newDownloa
var importResults = new List<ImportResult>();
foreach (var importDecision in qualifiedImports.OrderByDescending(e => e.LocalEpisode.Episodes.Select(episode => episode.EpisodeNumber).MinOrDefault())
foreach (var importDecision in qualifiedImports.OrderBy(e => e.LocalEpisode.Episodes.Select(episode => episode.EpisodeNumber).MinOrDefault())
.ThenByDescending(e => e.LocalEpisode.Size))
{
var localEpisode = importDecision.LocalEpisode;