App-get_flash_videos
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
get_flash_videos view on Meta::CPAN
|| die "Unable to copy plugin to '$filename': $!\n";
info "Plugin installed.";
return 0;
} else {
my $browser = FlashVideo::Mechanize->new;
return !install_plugin($browser, $plugin_url, $filename);
}
}
sub update {
my %update_types = (
'cpan-cpan' => [1, "cpan " . __PACKAGE__],
'cpan-cpanp' => [1, "cpanp i " . __PACKAGE__],
'cpan-cpanm' => [1, "cpanm " . __PACKAGE__],
'cpan-manual' => [0, "Manual install"],
);
# SCRIPT_NAME is some magic set by combine-perl or via MakeMaker
if($::SCRIPT_NAME) {
my $browser = FlashVideo::Mechanize->new;
lib/FlashVideo/Mechanize.pm view on Meta::CPAN
my $text = join " ", $self->response->code,
$self->response->header("Content-type"), "(" . length($self->content) . ")";
$text .= ": " . DBI::data_string_desc($self->content) if eval { require DBI };
print STDERR "<- $text\n";
}
return $r;
}
sub update_html {
my($self, $html) = @_;
my $charset = _parse_charset($self->response->header("Content-type"));
# If we have no character set in the header (therefore it is worth looking
# for a http-equiv in the body) or the content hasn't been decoded (older
# versions of Mech).
if($LWP::UserAgent::VERSION < 5.827
&& (!$charset || !Encode::is_utf8($html))) {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.636 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )