diff options
| author | Bond-009 <bond.009@outlook.com> | 2022-08-18 20:05:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-18 20:05:54 +0200 |
| commit | f954df2341174eaa0e5f3815b5cfd43efe76fe6e (patch) | |
| tree | 22aaac9d0a8a702ebc10c08be27a641e4ddccb72 /Jellyfin.Api/Controllers/SearchController.cs | |
| parent | fdd728e9f8b4592e4c41d9b3a87cc7859ef5fe1c (diff) | |
| parent | de98457332a1e25d38553dd11403704372213e15 (diff) | |
Merge pull request #8279 from nielsvanvelzen/search-fixes
Diffstat (limited to 'Jellyfin.Api/Controllers/SearchController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SearchController.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/SearchController.cs b/Jellyfin.Api/Controllers/SearchController.cs index 07e113ad3..138d8b8df 100644 --- a/Jellyfin.Api/Controllers/SearchController.cs +++ b/Jellyfin.Api/Controllers/SearchController.cs @@ -79,7 +79,7 @@ namespace Jellyfin.Api.Controllers [HttpGet] [Description("Gets search hints based on a search term")] [ProducesResponseType(StatusCodes.Status200OK)] - public ActionResult<SearchHintResult> Get( + public ActionResult<SearchHintResult> GetSearchHints( [FromQuery] int? startIndex, [FromQuery] int? limit, [FromQuery] Guid? userId, @@ -140,7 +140,7 @@ namespace Jellyfin.Api.Controllers IndexNumber = item.IndexNumber, ParentIndexNumber = item.ParentIndexNumber, Id = item.Id, - Type = item.GetClientTypeName(), + Type = item.GetBaseItemKind(), MediaType = item.MediaType, MatchedTerm = hintInfo.MatchedTerm, RunTimeTicks = item.RunTimeTicks, @@ -149,8 +149,10 @@ namespace Jellyfin.Api.Controllers EndDate = item.EndDate }; - // legacy +#pragma warning disable CS0618 + // Kept for compatibility with older clients result.ItemId = result.Id; +#pragma warning restore CS0618 if (item.IsFolder) { |
