aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/SuggestionsController.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2021-05-27 06:07:57 -0600
committercrobibero <cody@robibe.ro>2021-05-27 06:07:57 -0600
commit01e8ff8ddf84ac033a00917664482f67572e0f9b (patch)
tree288ad75a0413995442eddf0e78d0c3bb72139456 /Jellyfin.Api/Controllers/SuggestionsController.cs
parent78791a932f4a83834c1fb58e28a94cce6c8f349c (diff)
parent75704effaed91456bf6e4d46f7d6c7145bcdec5f (diff)
Merge remote-tracking branch 'upstream/master' into healthy-base-url
Diffstat (limited to 'Jellyfin.Api/Controllers/SuggestionsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/SuggestionsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/SuggestionsController.cs b/Jellyfin.Api/Controllers/SuggestionsController.cs
index a55f13e66..a811a29c3 100644
--- a/Jellyfin.Api/Controllers/SuggestionsController.cs
+++ b/Jellyfin.Api/Controllers/SuggestionsController.cs
@@ -69,7 +69,7 @@ namespace Jellyfin.Api.Controllers
var dtoOptions = new DtoOptions().AddClientFields(Request);
var result = _libraryManager.GetItemsResult(new InternalItemsQuery(user)
{
- OrderBy = new[] { ItemSortBy.Random }.Select(i => new ValueTuple<string, SortOrder>(i, SortOrder.Descending)).ToArray(),
+ OrderBy = new[] { (ItemSortBy.Random, SortOrder.Descending) },
MediaTypes = mediaType,
IncludeItemTypes = type,
IsVirtualItem = false,