Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- link = gets
- if link =~ /watch/
- x = link.split('')
- v = x[32..]
- v = v.join("").rstrip.rstrip
- print v
- else
- x = link.split('')
- v = x[17..]
- v = v.join("").rstrip.rstrip
- print v
- end
- #https://www.youtube.com/watch?v=ID_NUMBER
- #https://youtu.be/ID_NUMBER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement