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

fix(Search): Fix it occasionally returning only a small number of results #720

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

absidue
Copy link
Collaborator

@absidue absidue commented Aug 3, 2024

YouTube seems to have two types of search responses, one of them consists of a single ItemSection and then the continuation, the second type is made up of lots of ItemSections each with only a few number of items in them and then the continuation. To be able to handle both cases, I've changed the code to merge together the items from all of the sections. This shouldn't cause any problems, as the People also watched and People also search for sub-sections are shelves (Shelf class) inside of the ItemSections.

FreeTubeApp/FreeTube#5510

@LuanRT LuanRT merged commit 2c0bb23 into LuanRT:main Aug 3, 2024
4 checks passed
@absidue absidue deleted the fix-search-results branch August 3, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants