Sha256: 59a2ff166177cda5a740e65fe5e4c286d791e1ba4768970340b9272b4a4ad93d

Contents?: true

Size: 839 Bytes

Versions: 1

Compression:

Stored size: 839 Bytes

Contents

# YoutubeId

Simple video id extraction from youtube urls.

## Installation

Add this line to your application's Gemfile:

    gem 'youtube_id'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install youtube_id

## Usage

```ruby
YoutubeID.from("http//www.youtube.com/watch?v=RCUkmUXMd_k") # => "RCUkmUXMd_k"
```

We currently support these url formats:
`http://www.youtube.com/v/RCUkmUXMd_k`
`http://www.youtube.com/v/RCUkmUXMd_k?version=3&hl=en_US&rel=0`
`http://www.youtube.com/embed/RCUkmUXMd_k?rel=0`
`http://www.youtube.com/watch?v=RCUkmUXMd_k`
`http://www.youtube.com/watch?v=RCUkmUXMd_k&feature=related`
`http://www.youtube.com/watch?v=RCUkmUXMd_k#t=0m10s`
`http://www.youtube.com/user/ForceD3strategy#p/a/u/0/8WVTOUh53QY`
`http://youtu.be/RCUkmUXMd_k`

See the specs for more detailed information.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
youtube_id-0.0.1 README.md