瀏覽代碼

Whine less about tracker lookups, and with more data

Zachary Kotlarek 11 年之前
父節點
當前提交
a54ec85e28
共有 1 個文件被更改,包括 3 次插入 和 1 次删除
  1. 3 1
      findTorrent.pl

+ 3 - 1
findTorrent.pl

@@ -1125,7 +1125,9 @@ sub resolveTrackers($) {
 		# Parse out and fetch the tracker list URL
 		my ($list) = $fetch->content() =~ /\<a rel\=\"nofollow\" href\=\"(\/announcelist_\d+)\"\>/;
 		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;
 		}
 		my $listURL = $baseURL . $list;