App-get_flash_videos
view release on metacpan or search on metacpan
lib/FlashVideo/Utils.pm view on Meta::CPAN
use constant FP_KEY => "Genuine Adobe Flash Player 001";
use constant EXTENSIONS => qr/\.(?:flv|mp4|mov|wmv|avi|m4v)/i;
use constant MAX_REDIRECTS => 5;
our @EXPORT = qw(debug info error
extract_title extract_info title_to_filename get_video_filename url_exists
swfhash swfhash_data EXTENSIONS get_user_config_dir get_win_codepage
is_program_on_path get_terminal_width json_unescape
convert_sami_subtitles_to_srt from_xml);
sub debug(@) {
# Remove some sensitive data
my $string = "@_\n";
$string =~ s/\Q$ENV{HOME}\E/~/g;
print STDERR $string if $App::get_flash_videos::opt{debug};
}
sub info(@) {
print STDERR "@_\n" unless $App::get_flash_videos::opt{quiet};
}
sub error(@) {
print STDERR "@_\n";
}
sub extract_title {
my($browser) = @_;
return extract_info($browser)->{title};
}
sub extract_info {
my($browser) = @_;
( run in 1.129 second using v1.01-cache-2.11-cpan-65fba6d93b7 )