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

Cannot search by tags and user at the same time. #145

Closed stpn closed 11 years ago

stpn commented 11 years ago

client.videos_by(:user => "nba", :tags => ["mercedes"])

returns videos that have nothing to do with mercedes (just videos from user), basically same results as client.videos_by(:user => "nba", :tags => ["playoffs"])

while http://gdata.youtube.com/feeds/api/users/nba/uploads?category=playoffs&alt=json http://gdata.youtube.com/feeds/api/users/nba/uploads?category=playoffs&alt=json

Or am I missing something?

chebyte commented 11 years ago

hey there thanks for the advice the params :user is just for use for users search, but if you need filter by user you have to use author param like this

client.videos_by(:author => "nba", :tags => ["playoffs"])

cheers