fix: limit quick search to five results

This commit is contained in:
2026-04-15 00:35:57 +02:00
parent 90c80b9d1e
commit 058aedd5e0
3 changed files with 20 additions and 5 deletions

View File

@@ -25,6 +25,10 @@ func (s *Service) Search(ctx context.Context, query string, page int) (jikan.Sea
return s.jikanClient.Search(ctx, query, page)
}
func (s *Service) QuickSearch(ctx context.Context, query string, page int, limit int) (jikan.SearchResult, error) {
return s.jikanClient.SearchWithLimit(ctx, query, page, limit)
}
func (s *Service) GetTopAnime(ctx context.Context, page int) (jikan.TopAnimeResult, error) {
return s.jikanClient.GetTopAnime(ctx, page)
}