TimeForANinja / node-ytpl

Anonymous YouTube playlist resolver.
MIT License
202 stars 48 forks source link

feat: add `views` field to video items #142

Closed apteryxxyz closed 1 year ago

apteryxxyz commented 1 year ago

Within the info object defined at parseItem.js#L15. There is a field info.title.accessibility.accessibilityData.label which includes the videos full view count, for example: Rick Astley - Never Gonna Give You Up (Official Music Video) by Rick Astley 13 years ago 3 minutes, 33 seconds 1,318,582,687 views.

I need access to the views value, so I've added some functionality that extracts the view count and returns it within the views field.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.