From 02742c3a1747ea40349f3a09142a44f6c46f0b62 Mon Sep 17 00:00:00 2001 From: Eros Fratini Date: Sat, 5 May 2018 14:18:15 +0200 Subject: [PATCH] Fixed missing parameters in querystring for GetSearchHintsAsync method --- .gitignore | 1 + Emby.ApiClient/ApiClient.cs | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index b68cb2b..45e38e8 100644 --- a/.gitignore +++ b/.gitignore @@ -228,3 +228,4 @@ pip-log.txt #Mr Developer .mr.developer.cfg +/.vs diff --git a/Emby.ApiClient/ApiClient.cs b/Emby.ApiClient/ApiClient.cs index e52cf1f..4911df1 100644 --- a/Emby.ApiClient/ApiClient.cs +++ b/Emby.ApiClient/ApiClient.cs @@ -1573,6 +1573,7 @@ public async Task GetSearchHintsAsync(SearchQuery query) queryString.AddIfNotNullOrEmpty("SearchTerm", query.SearchTerm); queryString.AddIfNotNullOrEmpty("UserId", query.UserId); + queryString.AddIfNotNullOrEmpty("ParentId", query.ParentId); queryString.AddIfNotNull("StartIndex", query.StartIndex); queryString.AddIfNotNull("Limit", query.Limit); @@ -1582,6 +1583,16 @@ public async Task GetSearchHintsAsync(SearchQuery query) queryString.Add("IncludePeople", query.IncludePeople); queryString.Add("IncludeStudios", query.IncludeStudios); + queryString.AddIfNotNull("ExcludeItemTypes", query.ExcludeItemTypes); + queryString.AddIfNotNull("IncludeItemTypes", query.IncludeItemTypes); + + queryString.AddIfNotNull("IsKids", query.IsKids); + queryString.AddIfNotNull("IsMovie", query.IsMovie); + queryString.AddIfNotNull("IsNews", query.IsNews); + queryString.AddIfNotNull("IsSeries", query.IsSeries); + queryString.AddIfNotNull("IsSports", query.IsSports); + queryString.AddIfNotNull("MediaTypes", query.MediaTypes); + var url = GetApiUrl("Search/Hints", queryString); using (var stream = await GetSerializedStreamAsync(url).ConfigureAwait(false))