From e7da1d6ef392d2533bf4f31ba6bca3d3824352cd Mon Sep 17 00:00:00 2001 From: Ralf Ertzinger Date: Thu, 20 Mar 2008 22:42:28 +0100 Subject: [PATCH] - Fix DailyMotion grabber --- videosite/DailyMotionGrabber.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/videosite/DailyMotionGrabber.pm b/videosite/DailyMotionGrabber.pm index 24afc7d..5e4f10e 100644 --- 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'}; } } -- 1.8.3.1