git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89b8c37
)
- Drop unnecessary code
author
Ralf Ertzinger
<sun@ryoko.camperquake.de>
Fri, 25 Jan 2008 20:49:05 +0000
(21:49 +0100)
committer
Ralf Ertzinger
<sun@ryoko.camperquake.de>
Fri, 25 Jan 2008 20:49:05 +0000
(21:49 +0100)
videosite/YouTubeGrabber.pm
patch
|
blob
|
history
diff --git
a/videosite/YouTubeGrabber.pm
b/videosite/YouTubeGrabber.pm
index
006ec17
..
e2c6e70
100644
(file)
--- a/
videosite/YouTubeGrabber.pm
+++ b/
videosite/YouTubeGrabber.pm
@@
-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'});