This is mainly a bugfix release but also makes it easier to search for videos by category. Searching by category greatly helps in finding videos that are more relevant. You can now do:
videos = videos_by_category_and_tag(YouTube::Category::MUSIC, 'bush')
or if you wanted to:
videos = videos_by_category_and_tag(YouTube::Category::NEWS_POLITICS, 'bush')
For more details check out the CHANGELOG. Thanks to all the contributers, Walter Korman, Lucas Carlson, Rob Tsuk, and Thomas Cox.
Related posts:

Your gem is great. Thanks!
The only feature I was missing was the total number of available videos when you get the search results page by page. I extracted the value the following way:
Thanks, the gem is very nice. I added the following code in the library to retrieve the popular videos:
Just in case anybody needs it. As an example: videos = youtube.popular_videos(‘day’) videos.each { |video| print video.author }
Just wanted to say thank for this gem, it’s great, easy to use, works like a charm. We just implemented it at http://www.mtraks.com, under Artist pages you can now view relevant videos under the ‘videos’ tab.
One suggestion for the ‘videos_by_category_and_tag’ method. Would you (or maybe you already have) be able to have the video objects use the ‘embed_status’ attribute like the ‘video_details’ method uses? I would be really helpful to be able to request of bunch of videos then only embed the ones that are in fact embeddable. Right now I have to make a call to ‘videos_by_category_and_tag’ then a call to ‘video_details’ for each video. The YouTube API website says that ‘videos_by_category_and_tag’ does return the embed_status attribute.
Cool. thanks again!
Hi there, super fantastic plugin. But I have one issue—when including the YouTube gem into my Rails app, I get the following output when starting my server:
/usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.11/lib/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.11/lib/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.11/lib/xmlsimple.rb:281: warning: already initialized constant DEF_ROOT_NAME /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.11/lib/xmlsimple.rb:282: warning: already initialized constant DEF_CONTENT_KEY /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.11/lib/xmlsimple.rb:283: warning: already initialized constant DEF_XML_DECLARATION /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.11/lib/xmlsimple.rb:284: warning: already initialized constant DEF_ANONYMOUS_TAG /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.11/lib/xmlsimple.rb:285: warning: already initialized constant DEF_FORCE_ARRAY /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.11/lib/xmlsimple.rb:286: warning: already initialized constant DEF_INDENTATION /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.11/lib/xmlsimple.rb:287: warning: already initialized constant DEF_KEY_TO_SYMBOL
The xml-simple FAQ
- http://xml-simple.rubyforge.org/ -indicates that the XmlSimple library is already included in Rails, but has a non-standard file name, such that other requires of the plugin will reload it, redefining all the constants. The FAQ suggests that if you’re going to use XmlSimple in a Rails app, you ought to only require the library if the XmlSimple const has not already been defined.I know this isn’t a YouTube gem bug, but would you mind making this minor change so that those of us using Rails apps don’t see these warning messages over & over?
Many thanks,
Michael
This gem is great! I used it on my Alarm Clock/YouTube mashup with no problems. Thanks for your hard work.
AlarmTube
—Tim
He filledher lil kim porn with his fist into my straight face for. I guess lil kim exposed i found that she was real.
jenny mccarthy gallery
sonya walger nude
candice michelle nude
tara reid breast
megan fox fhm
lena headey nude