twlite / youtube-sr

A dead-simple youtube metadata scraper
https://npmjs.com/package/youtube-sr
MIT License
113 stars 16 forks source link

fix(Util): Update for youtube dislike removal #38

Closed s-montigny-desautels closed 2 years ago

s-montigny-desautels commented 2 years ago

With the removal of the dislikes count in the public api, the method getVideo fail with the error Cannot read properties of undefined (reading 'sentimentBarRenderer')

This patch remove the dislikes parsing and modify the like parsing to use the infos provided in the TopLevelButtons.