-
Notifications
You must be signed in to change notification settings - Fork 886
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
Handle missing data in search results #3099
Handle missing data in search results #3099
Conversation
@LuanRT RE your TODO here https://github.com/LuanRT/YouTube.js/blob/main/src/parser/classes/Channel.ts#L33, I presume that this is why they haven't renamed the properties. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
b242226
9454e09
to
b242226
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Sorry for tapping on disable auto merge. I sometimes think this is another button😅 |
Handle missing data in search results
Pull Request Type
Description
YouTube's search results unfortunately don't always contain all of the information. This pull request adds logic to fix the errors that were occurring when FreeTube encountered the missing data.
Channel search results can contain any combination of handle, subscribers or video count.
Video search results don't always contain the published text.
Playlist search results don't always have a channel id, sometimes it's just some text like "Various artists".
Screenshots
Different types:
Testing
Set the search filter to channels and search for
zephyr whispers
Clear the search filters and search for
rihanna topic
Clear the search filters and search for
zephyr vol 1
Desktop