aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/ItemsService.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-10-20 16:08:40 +0200
committerBond_009 <bond.009@outlook.com>2019-10-20 16:08:40 +0200
commitbbc08753878b7b8a37ed876385d2e6864349d00d (patch)
treef983b32a0f58c410c28969ffcce599153dc4bd81 /MediaBrowser.Api/UserLibrary/ItemsService.cs
parente3f1f62a8bb5377c80e3c26331915db7e0fe2fa4 (diff)
Don't shuffle some types by default
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/ItemsService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs
index b4a302648..6e7351240 100644
--- a/MediaBrowser.Api/UserLibrary/ItemsService.cs
+++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs
@@ -476,7 +476,7 @@ namespace MediaBrowser.Api.UserLibrary
}
// Apply default sorting if none requested
- if (query.OrderBy.Length == 0)
+ if (query.OrderBy.Count == 0)
{
// Albums by artist
if (query.ArtistIds.Length > 0 && query.IncludeItemTypes.Length == 1 && string.Equals(query.IncludeItemTypes[0], "MusicAlbum", StringComparison.OrdinalIgnoreCase))