I just tried embedding this video, and it was unsuccessful:

http://www.youtube.com/watch?v=v5RwY1GXAzA

The page saves correctly, but the video id used is 5RwY1GXAzA, with the v removed from the start.

There is no video with this id, so the player loads in the post, but remains blank with no thumbnail, and says "An error occurred, please try again later. Learn more" when pressing play.

I'm guessing this is a bug in the code that extracts the code from the URL, but I'm not technical enough myself to figure out where the problem is.

Workaround for now is to change the url to http://youtu.be/v5RwY1GXAzA

This parses correctly and gives the correct video id of v5RwY1GXAzA and the video plays correctly.

-Peter

Comments

guschilds’s picture

Title: Wrong video ID detected » Wrong video ID detected when it starts with "v"

Hey Peter,

Sorry about that. You're right. The code that extracted the video ID from the URL doesn't work properly when the video ID starts with "v". This was discovered and fixed in #1865284: If v= is not the first parameter in the youtube url it doesn't work. and the fix was committed.

Unfortunately that commit hasn't made it into a release yet. I'm going to prioritize a new release. Until then, you can use the 7.x-1.x-dev release on the project page. It contains the fix.

I'll leave this issue open until the release is made so others may find it and to encourage myself to make it.

Thanks,
Gus

guschilds’s picture

Status: Active » Closed (duplicate)

I've just created the 7.x-1.2 release. The fix is contained in that release. Once you update, you should be good to go!