Skip to content

reu/youtube_id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YoutubeId

Simple video id extraction from youtube urls.

Build Status

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

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

It supports 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.

About

Easily extract the video id from youtube videos urls

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages