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

Youtube Captions API integeration #107

Closed nazarhussain closed 12 years ago

nazarhussain commented 12 years ago

Hi,

I embedded Youtube Captions API (https://developers.google.com/youtube/2.0/developers_guide_protocol_captions) which was needed for one of my project.

The captions_update methods can be used to add new or update existing captions. This is the current options that are supported for this methods.

{
   :language => 'en-US',
    :slug => ''"
}

Its signature is captions_update(video_id,data,opts) where as data is the content of captions file which can easily be get from File.read.

In future, I will embed other features of captions as well and send you the pull requests.

Thanks.

nazarhussain commented 12 years ago

To clarify one point if any caption for provided :language already exists it will be updated otherwise it will be added as new caption.

karlseguin commented 12 years ago

+1

cviedmai commented 12 years ago

+1

ehoch commented 12 years ago

Any shot you could add in the ability to fetch captions as well?

nazarhussain commented 12 years ago

A bit busy these days. Will integrate Captions fetching and other captions related stuff in few weeks.