youtube_addy
youtube_addy copied to clipboard
Ruby gem to parse a standard youtube url and generate the embed html code
Could the README be altered to point to the more recent fork, https://github.com/luizpicolo/youtube_rails/? Failing that, hopefully this issue will alert others. I myself didn't realise until after I'd started using...
Get back with no link nor html when wrong input/link.
How do I solve this? Here is my code in my `index.html.erb` file: ``
I have https website. Tried it on https and it doesn't work on my website. When I change the http onto https on your youtube_embed_url function it start to work.
If never matches an URL_FORMAT it will return nil in the last item of the hash. More details issue: https://github.com/datwright/youtube_addy/issues/2
I was using bootstrap three responsive snippets and there wasn't any function which returns only embed url for youtube. So I created one.
Added method for return image :+1:
The return of the method must be a valid html
Hi with the last merge request(may 26) i'm getting this error ``` ruby YouTubeAddy.extract_video_id("asd") => [/^(https?:\/\/)?(www\.)?youtube.com\/watch\?(.*\&)?v=(?[^&]+)/, /^(https?:\/\/)?(www\.)?youtu.be\/(?[^&]+)/, /^(https?:\/\/)?(www\.)?youtube.com\/embed\/(?[^&]+)/, /^(https?:\/\/)?(www\.)?youtube.com\/v\/(?[^?]+)/, /^(https?:\/\/)?(www\.)?youtube.com\/apiplayer\?video_id=(?[^&]+)/] ``` I'm guessing the error is in the last merge...