/usr/share/perl5/FlashVideo/Site/Cbs.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 33 34 | # Part of get-flash-videos. See get_flash_videos for copyright.
package FlashVideo::Site::Cbs;
use strict;
use FlashVideo::Utils;
sub find_video {
my ($self, $browser, $embed_url) = @_;
my $pid;
if ($browser->uri->as_string =~ /pid=([^&]*)/) {
$pid = $1;
}
$browser->get("http://release.theplatform.com/content.select?format=SMIL&Tracking=true&balance=true&MBR=true&pid=$pid");
my $xml = from_xml($browser->content);
my $items = $xml->{body}->{switch};
my $item = ref $items eq 'ARRAY' ?
(grep { $_->{video}->{src} =~ /^rtmp:\/\// } @$items)[0] :
$items;
my $rtmpurl = $item->{video}->{src};
$rtmpurl =~ s/<break>.*//;
my $title = $item->{ref}->{title};
return {
rtmp => $rtmpurl,
flv => title_to_filename($title)
};
}
1;
|