kylejginavan / youtube_it

An object-oriented Ruby wrapper for the YouTube GData API
http://groups.google.com/group/ruby-youtube-library
595 stars 223 forks source link

Fix for pulling complete comments #243

Open amalagaura opened 9 years ago

amalagaura commented 9 years ago

Thanks for this gem, it is very useful. I used it with the v2 API because I need comments.

I did this monkey-patch to add 2 methods to allow pulling all comments using the "next" url in the response. I don't know what approach can be used to properly integrate but the methods need to return metadata instead of only comments.

Please see if it is useful. It has to be called with the option: {'orderby' => 'published'}

https://gist.github.com/amalagaura/8821f2b26cc3b00a1b13

amalagaura commented 9 years ago

Oh I see you have done paging with videos. Sorry I did not see that. If you like I can try to do a proper pull request, but it would mess up the "comments" method of course because it would return a different object.