This file is indexed.

/usr/share/perl5/FlashVideo/Site/Tv3play.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Part of get-flash-videos. See get_flash_videos for copyright.
package FlashVideo::Site::Tv3play;
use strict;
use warnings;
use FlashVideo::Utils;

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

sub find_video {
  my ($self, $browser, $embed_url, $prefs) = @_;
  return $self->find_video_viasat($browser,$embed_url,$prefs);
}

sub find_video_viasat {
  my ($self, $browser, $embed_url, $prefs) = @_;
  my $video_id = ($browser->content =~ /id:([0-9]*),/)[0];
  info "Got video_id: $video_id";
  my $info_url = "http://viastream.viasat.tv/PlayProduct/$video_id";
  $browser->get($info_url);

  my $xml = from_xml($browser->content);
  my $product = $xml->{Product};
  my $title = $product->{Title};
  my $flv_filename = title_to_filename($title, "flv");

  # Create array of video resolutions
  my @videos;
  if (ref $product->{Videos} eq 'HASH') {
    push(@videos, $product->{Videos});
  } else {
    @videos = $product->{Videos};
  }

  # Collect the rtmp data for each resolution
  my @urls;
  foreach (@videos) {
    my $video = $_->{Video};
    my $bitrate = $video->{BitRate};
    my $url = $video->{Url};

    if ($url =~ m/http:\/\//){
      $browser->get($url);
      $xml = from_xml($browser->content);
      $url = $xml->{'Url'};
    }

    my $rtmp_data = {
      'swfVfy' => "http://flvplayer.viastream.viasat.tv/flvplayer/play/swf/MTGXPlayer-0.7.4.swf",
      'flv'    => $flv_filename
    };

    if ($url =~ /(rtmp:.*)(mp4:.*)/) {
      $rtmp_data->{'rtmp'} = $1;
      $rtmp_data->{'playpath'} = $2;
    } else {
      $rtmp_data->{'rtmp'} = $url;
    }

    push(@urls, { 'bitrate' => $bitrate, 'rtmp_data' => $rtmp_data });
  }

  my $bitrate = 0;
  my $new_bitrate;
  my $rtmp_data;
  foreach (@urls) {
    $new_bitrate = int($_->{bitrate});
    if ($new_bitrate > $bitrate) {
      $bitrate = int($_->{bitrate});
      $rtmp_data = $_->{rtmp_data};
    }
  };

  return $rtmp_data;
}

1;