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

Searching by search query and user together #223

Open martynbiz opened 10 years ago

martynbiz commented 10 years ago

Is it possible to search by query within a specific user (or users) videos? If I try:

client.videos_by(:user => '4oDComedy ', :query => 'inbetweeners')

...it just gives me videos from the user, but not the query search within the videos. The YouTube API should allow querying for both user and query string. Is this a bug, or is this feature not part of the gem?

shivamd commented 10 years ago

@martynbiz Try the following. client.videos_by(:query => "some surprising things", :author => "vsauce") equates to: https://www.youtube.com/user/Vsauce/search?query=some+surprising+things