diff options
| author | Tim Eisele <Tim_Eisele@web.de> | 2026-06-07 22:07:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-07 22:07:35 +0200 |
| commit | d8d386e88a8bd27ef8e40497e302db184cc02b08 (patch) | |
| tree | 943a72b36d1bbeaf9ad27dd065b7fbfdf2ddd4cf | |
| parent | a2bab98c23b2ca8214d6d53650c6a0cfef45e581 (diff) | |
Apply suggestions from code review
Co-authored-by: Bond-009 <bond.009@outlook.com>
| -rw-r--r-- | Emby.Server.Implementations/Library/Search/SearchManager.cs | 2 | ||||
| -rw-r--r-- | Jellyfin.Api/Controllers/ItemsController.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Library/Search/SearchManager.cs b/Emby.Server.Implementations/Library/Search/SearchManager.cs index ff14a1db3a..a5be3f07bd 100644 --- a/Emby.Server.Implementations/Library/Search/SearchManager.cs +++ b/Emby.Server.Implementations/Library/Search/SearchManager.cs @@ -185,7 +185,7 @@ public class SearchManager : ISearchManager } var candidateScores = BuildScoreLookup(candidates); - var user = !query.UserId.IsEmpty() ? _userManager.GetUserById(query.UserId) : null; + var user = query.UserId.IsEmpty() ? null : _userManager.GetUserById(query.UserId); var excludeItemTypes = BuildExcludeItemTypes(query); var includeItemTypes = BuildIncludeItemTypes(query); diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs index 679f6fafc2..15c2e922f8 100644 --- a/Jellyfin.Api/Controllers/ItemsController.cs +++ b/Jellyfin.Api/Controllers/ItemsController.cs @@ -386,8 +386,8 @@ public class ItemsController : BaseJellyfinApiController Recursive = recursive ?? false, OrderBy = RequestHelpers.GetOrderBy(sortBy, sortOrder), IsFavorite = isFavorite, - Limit = searchResultScores is not null ? null : limit, - StartIndex = searchResultScores is not null ? null : startIndex, + Limit = searchResultScores is null ? limit : null, + StartIndex = searchResultScores is null ? startIndex : null, IsMissing = isMissing, IsUnaired = isUnaired, CollapseBoxSetItems = collapseBoxSetItems, |
