- Vimeo fixed their hash algorithm. Wohooo!
authorRalf Ertzinger <sun@ryoko-darknet.camperquake.de>
Sat, 24 Jan 2009 17:39:55 +0000 (18:39 +0100)
committerRalf Ertzinger <sun@ryoko-darknet.camperquake.de>
Sat, 24 Jan 2009 17:39:55 +0000 (18:39 +0100)
videosite/VimeoGrabber.pm

index 4b06bfe..4371e53 100644 (file)
@@ -70,8 +70,9 @@ sub _parse {
         $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');