Permalink
Browse files

Add YouTube timestamp to embed title

  • Loading branch information...
1 parent 01dad44 commit 0b65222625af01592d219d6713a7f14fa57bc308 @ryanfb committed May 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Noembed/Source/YouTube.pm
@@ -32,6 +32,7 @@ sub serialize {
# tack on start parameter if timecode was in original URL
if (my @t = $req->url =~ /[&#\?]a?t=(?:(\d+)m)?(\d+)s/) {
+ $data->{title} = "$data->{title} (skip to $t[0]:$t[1])";
my $seconds = pop @t;
if (@t) {
$seconds += $t[0] * 60;

0 comments on commit 0b65222

Please sign in to comment.