diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-12-17 17:35:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-17 17:35:27 +0100 |
| commit | 6b185119aa329764c1ccc57d9be3e81f05680b69 (patch) | |
| tree | a2dd354a5a55ed9669750ede3f7c00baae4f09be /Emby.Server.Implementations/Library/LibraryManager.cs | |
| parent | 35151553e3fc9ddbe352744af8d832b1337491c8 (diff) | |
| parent | db61a58c39490f86c86c3ee6c6f11743796fb10e (diff) | |
Merge branch 'master' into namingtests
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/LibraryManager.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index 8589b1b33..04a190101 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -1,3 +1,5 @@ +#pragma warning disable CS1591 + using System; using System.Collections.Concurrent; using System.Collections.Generic; @@ -829,7 +831,7 @@ namespace Emby.Server.Implementations.Library { Path = path, IsFolder = isFolder, - OrderBy = new[] { ItemSortBy.DateCreated }.Select(i => new ValueTuple<string, SortOrder>(i, SortOrder.Descending)).ToArray(), + OrderBy = new[] { (ItemSortBy.DateCreated, SortOrder.Descending) }, Limit = 1, DtoOptions = new DtoOptions(true) }; @@ -1257,7 +1259,7 @@ namespace Emby.Server.Implementations.Library public List<BaseItem> GetItemList(InternalItemsQuery query, bool allowExternalContent) { - if (query.Recursive && !query.ParentId.Equals(Guid.Empty)) + if (query.Recursive && query.ParentId != Guid.Empty) { var parent = GetItemById(query.ParentId); if (parent != null) |
