Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Suggest using the latest version of RTMPDump.

  • Loading branch information...
commit 443af430e8e1fce28679732a4660f2dd783346a2 1 parent e093159
@monsieurvideo monsieurvideo authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 FlashVideo/RTMPDownloader.pm
View
7 FlashVideo/RTMPDownloader.pm
@@ -8,6 +8,8 @@ use IPC::Open3;
use Symbol qw(gensym);
use FlashVideo::Utils;
+use constant LATEST_RTMPDUMP => 2.2;
+
sub download {
my ($self, $rtmp_data) = @_;
@@ -161,6 +163,11 @@ sub run {
} elsif($l =~ /\w/) {
print STDERR "\r" if $self->{downloaded};
info $l;
+
+ if($l =~ /^RTMPDump v([0-9.]+)/ && $1 < LATEST_RTMPDUMP) {
+ error "==== Using the latest version of RTMPDump (version "
+ . LATEST_RTMPDUMP . ") is recommended. ====";
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.