Open achensee opened 8 years ago
any news on that?
I'm having the same issue too - people are using the shorturl youtu.be and it is causing a DNS error - so I'm having to find and replace to fix it.
Having same issue. youtu.be url is causing an error in the iframe:
Embeding the same video on the youtube.com domain works just fine.
I fixed my copy by wrapping the short url on line 781 with another parenthesis youtubeShortUrl = url.match(/((?:www\.)?youtu\.be)\/([a-zA-Z0-9\-_]+)/),
and then replacing the shortURL with the long URL (lines 785-787).
if ( youtubeShortUrl ) {
youtubeUrl = youtubeShortUrl;
youtubeUrl[1] = 'www.youtube.com';
}
YouTube Short URLs like https://youtu.be/abcdefg lead to DNS Error in swipebox-video (wrong URL decoded)
To fix that, change line 784 to