Kaynağa Gözat

Disable quality checks when we have disabled quality checks

Zachary Kotlarek 12 yıl önce
ebeveyn
işleme
103c80d277
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      findTorrent.pl

+ 4 - 1
findTorrent.pl

@@ -211,10 +211,13 @@ if ($ENABLE_SOURCE{'Z'}) {
 		my %tmp = (
 			'host'          => $host,
 			'search_url'    => $search_url,
-			'search_suffix' => '+peer+%3E+' . $MIN_COUNT,
+			'search_suffix' => '',
 			'weight'        => 1,
 			'quote'         => 1
 		);
+		if (!$NO_QUALITY_CHECKS) {
+			$tmp{'search_suffix'} = '+peer+%3E+' . $MIN_COUNT,
+		}
 		$SOURCES{'Z'} = \%tmp;
 	}
 }