diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-04-21 22:25:08 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-04-21 22:25:08 +0200 |
| commit | f46195899e176912676511f277e31fea41d8ab27 (patch) | |
| tree | 775e2578dc5e4d6cec23c557da6f9b8bddba3965 /Jellyfin.Api/Controllers/TvShowsController.cs | |
| parent | 95ab603a40b96499e3a3b732f31aacc458ca8a2c (diff) | |
Improve perf of db save and query
Diffstat (limited to 'Jellyfin.Api/Controllers/TvShowsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/TvShowsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/TvShowsController.cs b/Jellyfin.Api/Controllers/TvShowsController.cs index e1c67f830..59400db2a 100644 --- a/Jellyfin.Api/Controllers/TvShowsController.cs +++ b/Jellyfin.Api/Controllers/TvShowsController.cs @@ -155,7 +155,7 @@ namespace Jellyfin.Api.Controllers var itemsResult = _libraryManager.GetItemList(new InternalItemsQuery(user) { IncludeItemTypes = new[] { nameof(Episode) }, - OrderBy = new[] { ItemSortBy.PremiereDate, ItemSortBy.SortName }.Select(i => new ValueTuple<string, SortOrder>(i, SortOrder.Ascending)).ToArray(), + OrderBy = new[] { (ItemSortBy.PremiereDate, SortOrder.Ascending), (ItemSortBy.SortName, SortOrder.Ascending) }, MinPremiereDate = minPremiereDate, StartIndex = startIndex, Limit = limit, |
