[youtube] tags now accept shortened YouTube URLs

Started by 64Guitars, September 30, 2012, 12:21:06 PM

64Guitars

The YouTube tags have always accepted full YouTube URLs such as:

[youtube]http://www.youtube.com/watch?v=YDChVcLWpGc[/youtube]

But quite some time ago, YouTube started offering shortened URLs that look like this: http://youtu.be/YDChVcLWpGc. Unfortunately, if you used these shortened URLs with our [youtube][/youtube] tags, you'd get a "#Invalid YouTube Link#" error, so you had to delete the "http://youtu.be/" part, leaving just the video ID.

[youtube]YDChVcLWpGc[/youtube]

That method will still work but it is no longer necessary. I have modified the code so that it will now allow the complete shortened URL, like this:

[youtube]http://youtu.be/YDChVcLWpGc[/youtube]

That should make it easier to insert YouTube videos into messages.

I've updated the YouTube instructions in the Guide to indicate that step 4 is no longer required.

https://songcrafters.org/community/index.php?action=articles;sa=view;article=2

recorder
Zoom R20
recorder
Boss BR-864
recorder
Ardour
recorder
Audacity
recorder
Bitwig 8-Track
     My Boss BR website


"When one person suffers from a delusion it is called insanity. When many people suffer from a delusion it is called religion." - Robert M. Pirsig

steelguitar

Thank you very much 64Guitars for this wonderful and pratical improvement in the Songcrafters functions...
Jean-Sébastien

recorder
Boss Micro BR


"I'm sitting on a comet / Slowing speed / I'm landing on your planet / On your land of weed" Daniel (de Sète)

https://www.facebook.com/TheMAUSS