/usr/share/perl5/FlashVideo/Site/Sapo.pm is in get-flash-videos 1.25~git2012.06.27-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 | # Part of get-flash-videos. See get_flash_videos for copyright.
package FlashVideo::Site::Sapo;
use strict;
use FlashVideo::Utils;
sub find_video {
my ($self, $browser) = @_;
my ($video_url, $type);
if ($browser->content =~ m{flvplayer-sapo\.swf\?file=(http://[^&"]+)}) {
$video_url = $1;
if ($video_url =~ m{/mov}) {
$type = "mp4";
}
}
else {
die "Couldn't extract Sapo video URL";
}
(my $title = extract_title($browser)) =~ s/ - SAPO V\x{ed}deos//;
my $filename = title_to_filename($title, $type);
$browser->allow_redirects(1);
return $video_url, $filename;
}
1;
|