#
# Grabber for vimeo.com
-package VimeoGrabber;
+package videosite::VimeoGrabber;
-use GrabberBase;
-@ISA = qw(GrabberBase);
+use videosite::GrabberBase;
+@ISA = qw(videosite::GrabberBase);
use LWP::Simple qw(!get);
use XML::Simple;
$self->debug('Selecting SD video');
$hd = '';
}
- $timestamp = $t->{'xml'}->{'timestamp'};
- $dlurl = sprintf('http://vimeo.com/moogaloop/play/clip:%s/1/%d%s', $metadata->{'ID'}, $timestamp, $hd);
+ $timestamp = $t->{'xml'}->{'request_signature_expires'};
+ $hash = $t->{'xml'}->{'request_signature'};
+ $dlurl = sprintf('http://vimeo.com/moogaloop/play/clip:%s/%s/%d%s', $metadata->{'ID'}, $hash, $timestamp, $hd);
unless(defined($dlurl)) {
$self->error('No dlurl found in XML');