- Drop unnecessary code
authorRalf Ertzinger <sun@ryoko.camperquake.de>
Fri, 25 Jan 2008 20:49:05 +0000 (21:49 +0100)
committerRalf Ertzinger <sun@ryoko.camperquake.de>
Fri, 25 Jan 2008 20:49:05 +0000 (21:49 +0100)
videosite/YouTubeGrabber.pm

index 006ec17..e2c6e70 100644 (file)
@@ -81,7 +81,7 @@ sub _parse {
     # Look for the download URL
     foreach $e (@text) {
         if ($e->[0] =~ m|/watch_fullscreen\?(.+)\x27|) {
-            my %args = map { my @a = split(/=/); ($a[0], $a[1]) } split(/&/, $1);
+            my %args = map { split(/=/, $_, 2); } split(/&/, $1);
             $metadata->{'DLURL'} = sprintf('http://www.youtube.com/get_video.php?video_id=%s&t=%s',
                     $metadata->{'ID'}, $args{'t'});
                 $self->debug('URL found: %s', $metadata->{'DLURL'});