aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/SearchEngine.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2022-01-21 19:50:08 +0100
committerGitHub <noreply@github.com>2022-01-21 19:50:08 +0100
commitcd675475bc5f37d4b20ed71271b17d0945b3f969 (patch)
treeee1a904ed6aacb1a3adc8848280caaf2b5856bc7 /Emby.Server.Implementations/Library/SearchEngine.cs
parent34ee6d82fb38b553d0ccd192fb7b2acfe2433c16 (diff)
parenta60cb280a3d31ba19ffb3a94cf83ef300a7473b7 (diff)
Merge pull request #7225 from crobibero/query-result
Diffstat (limited to 'Emby.Server.Implementations/Library/SearchEngine.cs')
-rw-r--r--Emby.Server.Implementations/Library/SearchEngine.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/Library/SearchEngine.cs b/Emby.Server.Implementations/Library/SearchEngine.cs
index 55911933a..70d9cbc98 100644
--- a/Emby.Server.Implementations/Library/SearchEngine.cs
+++ b/Emby.Server.Implementations/Library/SearchEngine.cs
@@ -48,12 +48,10 @@ namespace Emby.Server.Implementations.Library
results = results.GetRange(0, Math.Min(query.Limit.Value, results.Count));
}
- return new QueryResult<SearchHintInfo>
- {
- TotalRecordCount = totalRecordCount,
-
- Items = results
- };
+ return new QueryResult<SearchHintInfo>(
+ query.StartIndex,
+ totalRecordCount,
+ results);
}
private static void AddIfMissing(List<BaseItemKind> list, BaseItemKind value)