Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search Always Returns 5 Results #179

Open
cbishop opened this issue Jun 16, 2024 · 1 comment
Open

Search Always Returns 5 Results #179

cbishop opened this issue Jun 16, 2024 · 1 comment

Comments

@cbishop
Copy link

cbishop commented Jun 16, 2024

It seems that search is hard coded to return 5 results.

In my use case, I'd like more than 5 results, but even if I try 3, it still returns 5.

`topic = 'news'

response = cli.search.list(
q=topic,
search_type=["channel", "video", "playlist"],
count=3,
limit=50)`

@pidi3000
Copy link
Contributor

The Client.search.list function doesn't have the count or limit parameters,
it only has max_results.

I assumes you looked at the get_all_videos_id_with_channel_by_search example,
which uses the Api.search function and does have the count and limit paramters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants