Permalink
Browse files

Should have & in the regex start for YouTube timecode URLs

  • Loading branch information...
ryanfb committed May 26, 2012
1 parent f76ad95 commit 01dad440676eb65395333633f34de218427b3dde
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Noembed/Source/YouTube.pm
@@ -31,7 +31,7 @@ sub serialize {
my $uri = URI->new($src);
# tack on start parameter if timecode was in original URL
- if (my @t = $req->url =~ /[#\?]a?t=(?:(\d+)m)?(\d+)s/) {
+ if (my @t = $req->url =~ /[&#\?]a?t=(?:(\d+)m)?(\d+)s/) {
my $seconds = pop @t;
if (@t) {
$seconds += $t[0] * 60;

0 comments on commit 01dad44

Please sign in to comment.