Преглед изворни кода

Do not whine when we get no results

Zachary Kotlarek пре 9 година
родитељ
комит
cc47966fe8
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      findTorrent.pl

+ 3 - 1
findTorrent.pl

@@ -1078,7 +1078,9 @@ foreach my $content (@json_content) {
 	if (exists($content->{'title'}) && $content->{'title'} =~ /NZBCat/i) {
 		my $list = $content->{'item'};
 		if (!$list || ref($list) ne 'ARRAY') {
-			warn("Invalid NCAT list\n");
+			if ($DEBUG) {
+				warn("Empty/invalid NCAT list\n");
+			}
 			next;
 		}