This file is indexed.

/usr/share/perl5/FlashVideo/Site/Vimeo.pm is in get-flash-videos 1.25~git2014.03.23-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Part of get-flash-videos. See get_flash_videos for copyright.
package FlashVideo::Site::Vimeo;

use strict;
use warnings;
use FlashVideo::Utils;
use FlashVideo::JSON;

our $VERSION = '0.02';
sub Version() { $VERSION; }

sub find_video {
  my ($self, $browser, $embed_url, $prefs) = @_;

  my $id;

  if ($browser->response->is_redirect) {
    my $relurl = $browser->response->header('Location');
    info "Relocated to $relurl";
    $browser->get($relurl);
  }

  my $page_url = $browser->uri->as_string;

  if ($embed_url =~ /clip_id=(\d+)/) {
    $id = $1;
  } elsif ($embed_url =~ m!/(\d+)!) {
    $id = $1;
  }
  die "No ID found\n" unless $id;

  # this JSON response will contain title and video URLs
  my $info_url = "http://player.vimeo.com/v2/video/$id/config";
  $browser->get($info_url);
  my $video_data = from_json($browser->content);
  my $title = $video_data->{video}{title};
  my $filename = title_to_filename($title, "mp4");

  my @formats = map {
          { resolution => [$_->{width}, $_->{height}], url => $_->{url} }
      } values $video_data->{request}{files}{h264};

  my $preferred_quality = $prefs->quality->choose(@formats);

  return $preferred_quality->{url}, $filename;
}

1;