Codeinwp / Nivo-Lightbox-jQuery

A simple, flexible, responsive, retina-ready jQuery lightbox plugin.
http://dev7studios.com/nivo-lightbox
MIT License
157 stars 87 forks source link

Lightbox - Youtube and Related Vidoes #33

Open AndrewMarkUK opened 10 years ago

AndrewMarkUK commented 10 years ago

When referencing a YouTube URL for a movie within Nivo Lightbox, it does not seem to consider the No Related Content Parameter, for example;

http://youtube_url.com/12345abcde?rel=0

It seems that rel=0 is ignored in all cases.

Did anyone else discover this, and is there a resolve?

taylordaughtry commented 10 years ago

For future reference, it's returning an 'undefined' when Lightbox processes the URL, because the regex doesn't match what it's assuming the URL looks like. I'm working on a pull request that addresses this.

deannaw commented 7 years ago

The current code doesn't resolve this issue. Any suggestions?