mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-12 20:13:01 +03:00
Fix limit parameter error for search hints endpoint
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user