Google has removed getVideoData from the YouTube API. This commit fetches it from the object directly. Parsing it from getVideoUrl() may be a more stable long-term option.
Get YouTube video_id directly (getVideoData no longer works)
I'm not sure using an undocumented api function to fix a bug introduced because I used an undocumented function is a good idea here. Specially because 'd' is probably a minified variable that could change on the next release.
Good point. I'll fetch it another way.