aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/ItemsService.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2019-12-10 22:28:44 +0900
committerGitHub <noreply@github.com>2019-12-10 22:28:44 +0900
commitdee3076eaf331a8e3e4b220c34491f713914fbc0 (patch)
tree0f604975ad10de0f6e66234c5f1a36a21c113ea8 /MediaBrowser.Api/UserLibrary/ItemsService.cs
parentb5d0bd0d764982c8df2c341c1f38c4d0636409c3 (diff)
parenta2c35e6dba02f068a3f06e5a4e4964e6539069d1 (diff)
Merge pull request #1923 from Bond-009/random
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 1511420d3..81142b728 100644
--- a/MediaBrowser.Api/UserLibrary/ItemsService.cs
+++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs
@@ -468,7 +468,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))