The url's for some youtube videos have underscores in them. The regex in the minplayer.players.youtube.getMediaId method inside minplayer.players.youtube.js doesn't allow underscores.

Simply adding _ to the regex fixes this issue and allows all videos to load/play properly.

Broken regex:
var regex = /^http[s]?\:\/\/(www\.)?youtube\.com\/watch\?v=([a-zA-Z0-9\-]+)/i;

The code that works:
var regex = /^http[s]?\:\/\/(www\.)?youtube\.com\/watch\?v=([a-zA-Z0-9_\-]+)/i;

Comments

travist’s picture

Issue tags: +Release blocker

Good find... I will add this to the next release.

travist’s picture

Status: Active » Fixed

Just committed to HEAD with attribution. Check out your profile now! http://drupal.org/user/143226.

Thanks,

Travis.

AndrzejG’s picture

Sorry for OT - when the next release is planned to be launched?

jaymallison’s picture

Just grab the latest dev release. It's stable and useable.

Automatically closed -- issue fixed for 2 weeks with no activity.