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
- Fix DailyMotion grabber
[videosite.git]
/
videosite
/
DailyMotionGrabber.pm
diff --git
a/videosite/DailyMotionGrabber.pm
b/videosite/DailyMotionGrabber.pm
index
081b4b4
..
5e4f10e
100644
(file)
--- a/
videosite/DailyMotionGrabber.pm
+++ b/
videosite/DailyMotionGrabber.pm
@@
-45,7
+45,7
@@
sub _parse {
$metadata->{'URL'} = $url;
$metadata->{'ID'} = $2;
$metadata->{'TYPE'} = 'video';
$metadata->{'URL'} = $url;
$metadata->{'ID'} = $2;
$metadata->{'TYPE'} = 'video';
- $metadata->{'SOURCE'} =
'dailymotion'
;
+ $metadata->{'SOURCE'} =
$self->{'NAME'}
;
$metadata->{'TITLE'} = undef;
$metadata->{'DLURL'} = undef;
$metadata->{'TITLE'} = undef;
$metadata->{'DLURL'} = undef;
@@
-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'};
}
}
}
}