diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-02-14 16:57:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-14 16:57:00 -0700 |
| commit | 4ef0099598d0d21fe8b808f2c1ab126ede4b7b2f (patch) | |
| tree | 347cfa7b445fbe0456b45606424899e82310e2df /Jellyfin.Api/Controllers/SearchController.cs | |
| parent | 4acab009632251656158e1e9ded68574f64be967 (diff) | |
| parent | 5d28c5547e69b0d40e0bd2792335c9f85dba655b (diff) | |
Merge pull request #7233 from Bond-009/warn60
Diffstat (limited to 'Jellyfin.Api/Controllers/SearchController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SearchController.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Jellyfin.Api/Controllers/SearchController.cs b/Jellyfin.Api/Controllers/SearchController.cs index 26acb4cdc..6fcd2ae40 100644 --- a/Jellyfin.Api/Controllers/SearchController.cs +++ b/Jellyfin.Api/Controllers/SearchController.cs @@ -121,11 +121,7 @@ namespace Jellyfin.Api.Controllers IsSports = isSports }); - return new SearchHintResult - { - TotalRecordCount = result.TotalRecordCount, - SearchHints = result.Items.Select(GetSearchHintResult).ToArray() - }; + return new SearchHintResult(result.Items.Select(GetSearchHintResult).ToArray(), result.TotalRecordCount); } /// <summary> |
