less output without debug
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 16 Nov 2009 14:15:16 +0000 (15:15 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 16 Nov 2009 14:15:16 +0000 (15:15 +0100)
bin/mplayer.pl

index a21793c..62a0c97 100755 (executable)
@@ -157,7 +157,7 @@ sub fmt_mmss {
 sub html5tv {
 
        if ( ! $prop->{width} || ! $prop->{height} ) {
-               warn "SKIP no size yet\n";
+               warn "SKIP no size yet\n" if $debug;
                return;
        }
 
@@ -755,7 +755,7 @@ sub from_mplayer {
        } elsif ( $line =~ m{File not found} ) {
                die $line;
        } else {
-               warn "IGNORE $line";
+               warn "IGNORE $line\n"; # if $debug;
        }
 
 }