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
(from parent 1:
075b16a
)
- Fix DailyMotion grabber
author
Ralf Ertzinger
<sun@ryoko.camperquake.de>
Thu, 20 Mar 2008 21:42:28 +0000
(22:42 +0100)
committer
Ralf Ertzinger
<sun@ryoko.camperquake.de>
Thu, 20 Mar 2008 21:42:28 +0000
(22:42 +0100)
videosite/DailyMotionGrabber.pm
patch
|
blob
|
history
diff --git
a/videosite/DailyMotionGrabber.pm
b/videosite/DailyMotionGrabber.pm
index
24afc7d
..
5e4f10e
100644
(file)
--- a/
videosite/DailyMotionGrabber.pm
+++ b/
videosite/DailyMotionGrabber.pm
@@
-72,9
+72,11
@@
sub _parse {
# Look for the download URL
foreach $e (@text) {
- if ($e->[0] =~ m|\.addVariable\("
url
", "([^\"]+)"|) {
+ if ($e->[0] =~ m|\.addVariable\("
video
", "([^\"]+)"|) {
$metadata->{'DLURL'} = $1;
$metadata->{'DLURL'} =~ s/%(..)/chr(hex($1))/ge;
+ $metadata->{'DLURL'} =~ s/\@\@spark.*//g;
+ $metadata->{'DLURL'} = 'http://www.dailymotion.com' . $metadata->{'DLURL'};
}
}