X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite%2FDailyMotionGrabber.pm;fp=videosite%2FDailyMotionGrabber.pm;h=5e4f10ed1092b075821b229a53b68ce71e48136e;hb=e7da1d6ef392d2533bf4f31ba6bca3d3824352cd;hp=24afc7d29c094c8e13eb2d852f6b7a40f30b0f3a;hpb=075b16a89d7b76ed8112c6fbce81f5517695fa9d;p=videosite.git 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'}; } }