View | Details | Raw Unified | Return to bug 27422
Collapse All | Expand All

(-)a/C4/HTML5Media.pm (-2 / +1 lines)
Lines 105-111 sub gethtml5media { Link Here
105
                    next unless $url =~ m{^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*};
105
                    next unless $url =~ m{^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*};
106
                    my $video_id = $2;
106
                    my $video_id = $2;
107
                    next unless length($video_id) == 11; # Youtube video ids are 11 chars length
107
                    next unless length($video_id) == 11; # Youtube video ids are 11 chars length
108
                    $HTML5Media{srcblock} = sprintf '%s://www.youtube.com/embed/%s', $HTML5Media{protocol}, $video_id;
108
                    $HTML5Media{srcblock} = sprintf 'https://www.youtube.com/embed/%s', $video_id;
109
                    $HTML5Media{is_youtube} = 1;
109
                    $HTML5Media{is_youtube} = 1;
110
                    $is_youtube = 1;
110
                    $is_youtube = 1;
111
                }
111
                }
112
- 

Return to bug 27422