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(VideoInfo): Use microformat view_count when videoDetails view_count is NaN #393

Merged
merged 1 commit into from
Apr 30, 2023

Conversation

absidue
Copy link
Collaborator

@absidue absidue commented Apr 30, 2023

Looks like YouTube removed the view count from the video details, as I'm not sure if it's just on my machine or for everyone, it still tries to use the view count from the video details first before falling back to the microformat one. I wonder if this didn't show up earlier because we were using a hardcoded visitor ID?

@LuanRT
Copy link
Owner

LuanRT commented Apr 30, 2023

I think this happens because of the shorts params. If you manually send a request with the Actions class it still returns it in the video details object.

@LuanRT LuanRT merged commit 7c0abfc into LuanRT:main Apr 30, 2023
@absidue absidue deleted the fix-nan-views branch April 30, 2023 20:22
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