Hacker News new | ask | show | jobs
by gh0std3v 1666 days ago
> With the removal of dislike stats from the YouTube API, our backend will switch to using a combination of scraped dislike stats, estimates extrapolated from extension user data and estimates based on view\like ratios.

In case anyone is wondering, the extension seems to calculate the dislike count from the average rating, which is something that the YouTube API still returns. The average rating is calculated as follows [1]:

(like * 5) + (dislike)

---------------------- * 5

(like + dislike) * 5

If you do some algebra, the dislike count is calculated as (likes * (5 - rating)) / (rating - 1), which is what the author uses in their code [2]. I'm not sure what they mean by using "a combination of scraped dislike stats, estimates extrapolated from extension user data, and estimates based on view\like ratios" because I don't see them explicitly using anything like that in their code. Maybe it's something for the future. Hopefully someone can clarify what they mean by this statement.

[1] https://github.com/ytdl-org/youtube-dl/issues/29663#issuecom...

[2] https://github.com/Anarios/return-youtube-dislike