Skip to content

Commit

Permalink
fix: the results returned by the testing API do not need to be sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
chu-shen authored and kookxiang committed Oct 6, 2024
1 parent 139c02d commit 6c7a5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jellyfin.Plugin.Bangumi/BangumiApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public async Task<List<Subject>> SearchSubject(string keyword, SubjectType? type
var jsonString = await SendRequest(request, token);
#endif
var searchResult = JsonSerializer.Deserialize<SearchResult<Subject>>(jsonString, Options);
var list = searchResult?.Data ?? new List<Subject>();
return Subject.SortBySimilarity(list, keyword);
return searchResult?.Data ?? new List<Subject>();

}
else
{
Expand Down

0 comments on commit 6c7a5f1

Please sign in to comment.