Browse Source

Whine less about tracker lookups, and with more data

Zachary Kotlarek 11 years ago
parent
commit
a54ec85e28
1 changed files with 3 additions and 1 deletions
  1. 3 1
      findTorrent.pl

+ 3 - 1
findTorrent.pl

@@ -1125,7 +1125,9 @@ sub resolveTrackers($) {
 		# Parse out and fetch the tracker list URL
 		# Parse out and fetch the tracker list URL
 		my ($list) = $fetch->content() =~ /\<a rel\=\"nofollow\" href\=\"(\/announcelist_\d+)\"\>/;
 		my ($list) = $fetch->content() =~ /\<a rel\=\"nofollow\" href\=\"(\/announcelist_\d+)\"\>/;
 		if (!defined($list)) {
 		if (!defined($list)) {
-			print STDERR "Unable to find tracker list link\n";
+			if ($DEBUG) {
+				print STDERR 'Unable to find tracker list link at: ' . $hashURL . "\n";
+			}
 			return $url;
 			return $url;
 		}
 		}
 		my $listURL = $baseURL . $list;
 		my $listURL = $baseURL . $list;