Skip to content

fix(VideoInfo): Use microformat view_count when videoDetails view_count is NaN#393

Merged
LuanRT merged 1 commit intoLuanRT:mainfrom
absidue:fix-nan-views
Apr 30, 2023
Merged

fix(VideoInfo): Use microformat view_count when videoDetails view_count is NaN#393
LuanRT merged 1 commit intoLuanRT:mainfrom
absidue:fix-nan-views

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