Commits

Palmer, 2E0EOL committed 762258d Draft

Fix issue #2 (Cron email reports contain raw progress output)

Comments (0)

Files changed (2)

  libwww-perl,
  libxml-feed-perl,
  dl-libconfreader-perl,
- liburi-perl
+ liburi-perl,
+ libio-interactive-perl
 Description: Podcast downloader and management system
  Daybo Logic's podcast system keeps track of new podcasts posted on an RSS
  feed and downloads whatever you do not yet have, checking file lengths
 use Daybo::ConfReader;
 use Getopt::Std;
 use URI::Escape;
+use IO::Interactive qw(is_interactive);
 use strict;
 use warnings;
 use diagnostics;
 			return;
 		}
 	}
-	$ua = LWP::UserAgent->new( show_progress => 1 );
+	$ua = LWP::UserAgent->new( show_progress => is_interactive() );
 	unless ( $Feeds->{_main}->{noop} ) {
 		if ( open($f, '>>:raw', $local_podcast) ) {
 			binmode($f);