Merge pull request #1923 from Bond-009/random

Don't shuffle some types by default
This commit is contained in:
dkanada
2019-12-10 22:28:44 +09:00
committed by GitHub
21 changed files with 121 additions and 101 deletions

View File

@@ -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))