Sort by SortName after scanning
This commit is contained in:
parent
e10693cbe0
commit
abc527329d
|
@ -1621,7 +1621,8 @@ namespace MediaBrowser.Controller.Entities
|
||||||
|
|
||||||
await Task.WhenAll(tasks).ConfigureAwait(false);
|
await Task.WhenAll(tasks).ConfigureAwait(false);
|
||||||
|
|
||||||
item.ThemeVideoIds = newThemeVideoIds;
|
// They are expected to be sorted by SortName
|
||||||
|
item.ThemeVideoIds = newThemeVideos.OrderBy(i => i.SortName).Select(i => i.Id).ToArray();
|
||||||
|
|
||||||
return themeVideosChanged;
|
return themeVideosChanged;
|
||||||
}
|
}
|
||||||
|
@ -1658,7 +1659,8 @@ namespace MediaBrowser.Controller.Entities
|
||||||
|
|
||||||
await Task.WhenAll(tasks).ConfigureAwait(false);
|
await Task.WhenAll(tasks).ConfigureAwait(false);
|
||||||
|
|
||||||
item.ThemeSongIds = newThemeSongIds;
|
// They are expected to be sorted by SortName
|
||||||
|
item.ThemeSongIds = newThemeSongs.OrderBy(i => i.SortName).Select(i => i.Id).ToArray();
|
||||||
|
|
||||||
return themeSongsChanged;
|
return themeSongsChanged;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user