# Youtube-g 0.4.1 Released

**URL:** <https://www.ruby-forum.com/t/youtube-g-0-4-1-released/128752>\
**Category:** Ruby\
**Created:** [February 11, 2008, 9:21am UTC](https://www.ruby-forum.com/t/youtube-g-0-4-1-released/128752 "2008-02-11T09:21:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shane\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@Shane\_V](https://www.ruby-forum.com/u/Shane_V)\
**Post date:** [February 11, 2008, 9:21am UTC](https://www.ruby-forum.com/t/youtube-g-0-4-1-released/128752/1 "2008-02-11T09:21:04Z")

</div>

youtube-g version 0.4.1 has been released!

- [http://rubyforge.org/projects/youtube-g/](http://rubyforge.org/projects/youtube-g/)

youtube-g is a pure Ruby client for the YouTube GData API. It provides  
an easy  
way to access the latest YouTube video search results from your own  
programs.  
In comparison with the earlier Youtube search interfaces, this new API  
and  
library offers much-improved flexibility around executing complex search  
queries to obtain well-targeted video search results.

More detail on the underlying source Google-provided API is available  
at:

> **[YouTube  |  Google for Developers](https://developers.google.com/youtube/?csw=1)**
>
> Add YouTube functionality to your sites and apps.

## FEATURES/PROBLEMS:

- Aims to be in parity with Google’s YouTube GData API. Core  
functionality  
is currently present – work is in progress to fill in the rest.

## SYNOPSIS:

Create a client:

require ‘youtube\_g’  
client = YouTubeG::Client.new

Basic queries:

client.videos\_by(:query =\> “penguin”)  
client.videos\_by(:tags =\> [‘tiger’, ‘leopard’])  
client.videos\_by(:categories =\> [:news, :sports])  
client.videos\_by(:categories =\> [:news, :sports], :tags =\>  
[‘soccer’, ‘football’])  
client.videos\_by(:user =\> ‘liz’)

Standard feeds:

client.videos\_by(:most\_viewed)  
client.videos\_by(:top\_rated, :time =\> :today)

Advanced queries (with boolean operators OR (either), AND (include),  
NOT (exclude)):

client.videos\_by(:categories =\> { :either =\> [:news, :sports],  
:exclude =\> [:comedy] }, :tags =\> { :include =\> [‘football’], :exclude  
=\> [‘soccer’] })

Changes:

## 0.4.1 / 2008-02-11

- Added 3GPP video format [shane]
- Fixed tests [shane]

## 0.4.0 / 2007-12-18

- Fixed API projection in search URL [Pete H.]
- Fixed embeddable video searching [Pete H.]
- Fixed video embeddable detection [Pete H.]
- Fixed unique id hyphen detection [Pete H., Chris T.]

## AUTHORS

Walter Korman: removed\_email\_address@domain.invalid  
Shane V.: removed\_email\_address@domain.invalid

## CONTRIBUTERS

Pete H.

- [http://rubyforge.org/projects/youtube-g/](http://rubyforge.org/projects/youtube-g/)

Enjoy!  
-Shane

---

<div class="post-metadata">

**Author:** ![Shane\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@Shane\_V](https://www.ruby-forum.com/u/Shane_V)\
**Post date:** [February 11, 2008, 9:29am UTC](https://www.ruby-forum.com/t/youtube-g-0-4-1-released/128752/2 "2008-02-11T09:29:52Z")

</div>

On Feb 11, 2008 4:19 PM, Shane V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> youtube-g version 0.4.1 has been released!

nice.  
but sorry, but i do not see the new version, only the 0.4.0…

kind regards -botp

---

<div class="post-metadata">

**Author:** ![Shane\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@Shane\_V](https://www.ruby-forum.com/u/Shane_V)\
**Post date:** [February 11, 2008, 9:40am UTC](https://www.ruby-forum.com/t/youtube-g-0-4-1-released/128752/3 "2008-02-11T09:40:04Z")

</div>

I just released it so it probably needs some time to propagate through  
the gem mirrors.

---

<div class="post-metadata">

**Author:** ![Shane\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@Shane\_V](https://www.ruby-forum.com/u/Shane_V)\
**Post date:** [February 11, 2008, 10:13am UTC](https://www.ruby-forum.com/t/youtube-g-0-4-1-released/128752/4 "2008-02-11T10:13:14Z")

</div>

From: Shane V. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]

# I just released it so it probably needs some time to propagate through

# the gem mirrors.

oops, sorry. i just realized that now. will wait.  
thanks for youtube-g.

kind regards -botp
