Commits

Palmer, 2E0EOL committed 97b6d5b

Print message if none of the streams were enabled

Comments (0)

Files changed (1)

 	my %feeds = ( );
 	my %opts = ( );
 	my $confSeen = 0;
+	my $streamsEnabledCount = 0;
 	my @confFiles = (
 		'dlpodget.rc',
 		"$ENV{HOME}/.dlpodget.rc"
 	foreach my $feedName ( keys(%feeds) ) {
 		my $feed = $feeds{$feedName};
 		next if ( !$feed->{enable} );
+		$streamsEnabledCount++;
 		next if ( !$feed->{download} );
 		@entries = ReadStream(\%feeds, $feed->{rss}, $feedName);
 		foreach my $entry ( @entries ) {
 		print "No valid streams defined.\n";
 		return 1;
 	}
+	unless ( $streamsEnabledCount ) {
+		print "No enabled streams.\n";
+		return 0;
+	}
 
 	return 0;
 }