This file is indexed.

/usr/share/perl5/SReview/Video/NGinX.pm is in sreview-common 0.3.0-1.

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
49
50
package SReview::Video::NGinX;

use Moose;
use WWW::Curl::Easy;

extends 'SReview::Video';

has 'workfile' => (
	required => 1,
	is => 'rw',
	isa => 'Str',
);

has 'origurl' => (
	is => 'rw',
);

sub readopts {
	my $self = shift;
	my $output = shift;
	my $curl = WWW::Curl::Easy->new;
	my @opts;

	open OUTPUT, ">" . $self->workfile;
	$curl->setop(CURLOPT_WRITEDATA, \*OUTPUT);

	my $url = $self->url;
	my $start = 0;
	if ($self->has_fragment_start) {
		push @opts, 'start=' . $self->fragment_start;
		$start = $self->fragment_start;
	}
	if ($self->has_duration) {
		push @opts, 'end=' . ($start + $self->duration);
	}
	$url .= '?' . join('&', @opts);
	$curl->setopt(CURLOPT_URL, $url);
	my $res = $curl->perform;
	if($res != 0) {
		die "Received HTTP error code $res: " . $curl->strderror($res) . " " . $curl->errbuf;
	}
	close OUTPUT;
	$self->origurl($self->url);
	$self->url = $workfile;
	return $self->SReview::Video::readopts($self, $output);
}

no Moose;

1;