Open pionxzh opened 1 year ago
Currently views from searchVideo will be formatted to 1.2M but views from video will be a whole number, e.g. 475000
views
searchVideo
1.2M
video
475000
Consider providing two new fields to align the type and format
viewCount
viewCountFormatted
And we can drop views in the next major version
Reference: https://github.com/pionxzh/Pornhub.js/issues/68#issue-1802073736 https://github.com/pionxzh/Pornhub.js/issues/68#issuecomment-1634712080
Currently
views
fromsearchVideo
will be formatted to1.2M
butviews
fromvideo
will be a whole number, e.g.475000
Consider providing two new fields to align the type and format
viewCount
: number. e.g.475000
viewCountFormatted
: string. e.g.1.2M
And we can drop views in the next major version
Reference: https://github.com/pionxzh/Pornhub.js/issues/68#issue-1802073736 https://github.com/pionxzh/Pornhub.js/issues/68#issuecomment-1634712080