Fix limit parameter error for search hints endpoint

pull/4890/head
Niels van Velzen 4 years ago
parent 054adf6379
commit 2bb84c0675

@ -47,7 +47,7 @@ namespace Emby.Server.Implementations.Library
if (query.Limit.HasValue)
{
results = results.GetRange(0, query.Limit.Value);
results = results.GetRange(0, Math.Min(query.Limit.Value, results.Count));
}
return new QueryResult<SearchHintInfo>

Loading…
Cancel
Save