File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 763763 */
764764 getVideo : function ( url ) {
765765 var iframe = '' ,
766- youtubeUrl = url . match ( / w a t c h \? v = ( [ a - z A - Z 0 - 9 \- _ ] + ) / ) ,
766+ youtubeUrl = url . match ( / ( y o u t u b e \. c o m | y o u t u b e - n o c o o k i e \. c o m ) \/ w a t c h \? v = ( [ a - z A - Z 0 - 9 \- _ ] + ) / ) ,
767767 youtubeShortUrl = url . match ( / y o u t u \. b e \/ ( [ a - z A - Z 0 - 9 \- _ ] + ) / ) ,
768768 vimeoUrl = url . match ( / v i m e o \. c o m \/ ( [ 0 - 9 ] * ) / ) ,
769769 qs = '' ;
775775 'autoplay' : ( plugin . settings . autoplayVideos ? '1' : '0' ) ,
776776 'v' : ''
777777 } ) ;
778- iframe = '<iframe width="560" height="315" src="//www.youtube.com /embed/' + youtubeUrl [ 1 ] + '?' + qs + '" frameborder="0" allowfullscreen></iframe>' ;
778+ iframe = '<iframe width="560" height="315" src="//' + youtubeUrl [ 1 ] + ' /embed/' + youtubeUrl [ 2 ] + '?' + qs + '" frameborder="0" allowfullscreen></iframe>' ;
779779
780780 } else if ( vimeoUrl ) {
781781 qs = ui . parseUri ( url , {
You can’t perform that action at this time.
0 commit comments