thibaudgg / video_info

Get video info from Dailymotion, Vimeo, Wistia, and YouTube URLs.
https://rubygems.org/gems/video_info
MIT License
428 stars 132 forks source link

Exposing more video statistics #188

Closed ishields closed 1 year ago

ishields commented 4 years ago

Would it make sense to expose more statistics so they can be used when available? The YouTube api returns a lot more useful statistics than what is available via the model (because the _video_statistics attribute is private).

 {"viewCount"=>"1036033", "likeCount"=>"27742", "dislikeCount"=>"1160", "favoriteCount"=>"0", "commentCount"=>"1134"}

Either these raw statistics could be available as a hash or as separate methods. Any thoughts?

thibaudgg commented 4 years ago

That sounds good to add, please feel free to open a pull request.

ishields commented 4 years ago

Do you have a preference on whether to just expose "video_stats" or do individual methods for each statistic type?

thibaudgg commented 4 years ago

I think video_stats should be enough to expose.

markets commented 1 year ago

@ishields I just send a PR 👉🏼 #220