git://git.camperquake.de
/
videosite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Check for existance of hash key before using
[videosite.git]
/
videosite
/
DailyMotionGrabber.pm
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) {
# 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'} = $1;
$metadata->{'DLURL'} =~ s/%(..)/chr(hex($1))/ge;
+ $metadata->{'DLURL'} =~ s/\@\@spark.*//g;
+ $metadata->{'DLURL'} = 'http://www.dailymotion.com' . $metadata->{'DLURL'};
}
}
}
}