فهرست منبع

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;
 		}