Просмотр исходного кода

Add new KA proxies
Use HTTPS where available

Zachary Kotlarek 10 лет назад
Родитель
Сommit
74608aa2aa
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      findTorrent.pl

+ 8 - 8
findTorrent.pl

@@ -15,7 +15,7 @@ my $TV_DIR = `~/bin/video/mediaPath` . '/TV';
 
 
 # Search parameters
 # Search parameters
 my $PROTOCOL = 'https';
 my $PROTOCOL = 'https';
-my %ENABLE_SOURCE = ('TPB' => 1, 'ISO' => 1, 'KICK' => 0, 'Z' => 0, 'ET' => 1);
+my %ENABLE_SOURCE = ('TPB' => 1, 'ISO' => 1, 'KICK' => 1, 'Z' => 0, 'ET' => 1);
 
 
 # Selection parameters
 # Selection parameters
 my $MIN_COUNT        = 10;
 my $MIN_COUNT        = 10;
@@ -1457,7 +1457,7 @@ sub initSources() {
 		my @proxies = ('thepiratebay.org/search/', 'pirateproxy.la/search/', 'tpb.unblocked.co/search/');
 		my @proxies = ('thepiratebay.org/search/', 'pirateproxy.la/search/', 'tpb.unblocked.co/search/');
 		my $source = findProxy(\@proxies, '\bPirate Search\b');
 		my $source = findProxy(\@proxies, '\bPirate Search\b');
 		if ($source) {
 		if ($source) {
-			$source->{'weight'}        = 0.85;
+			$source->{'weight'}        = 1.00;
 			$source->{'quote'}         = 0;
 			$source->{'quote'}         = 0;
 			$source->{'search_suffix'} = '/0/7/0';
 			$source->{'search_suffix'} = '/0/7/0';
 			$sources{'TPB'}            = $source;
 			$sources{'TPB'}            = $source;
@@ -1466,7 +1466,7 @@ sub initSources() {
 
 
 	# ISOhunt
 	# ISOhunt
 	if ($ENABLE_SOURCE{'ISO'}) {
 	if ($ENABLE_SOURCE{'ISO'}) {
-		my @proxies = ('http://isohunters.net/torrents/?ihq=', 'isohunt.to/torrents/?ihq=');
+		my @proxies = ('isohunters.net/torrents/?ihq=', 'isohunt.to/torrents/?ihq=');
 		my $source = findProxy(\@proxies, 'Last\s+\d+\s+files\s+indexed');
 		my $source = findProxy(\@proxies, 'Last\s+\d+\s+files\s+indexed');
 		if ($source) {
 		if ($source) {
 			$source->{'weight'}        = 0.25;
 			$source->{'weight'}        = 0.25;
@@ -1478,8 +1478,8 @@ sub initSources() {
 
 
 	# Kickass
 	# Kickass
 	if ($ENABLE_SOURCE{'KICK'}) {
 	if ($ENABLE_SOURCE{'KICK'}) {
-		my @proxies = ('kat.cr/usearch/', 'kickass.unblocked.pw/usearch/', 'kickass.to/usearch/');
-		my $source = findProxy(\@proxies, '/usearch/');
+		my @proxies = ('kickass.cd/search.php?q=', 'kickass.mx/search.php?q=');
+		my $source = findProxy(\@proxies, '/search.php');
 		if ($source) {
 		if ($source) {
 			$source->{'weight'}        = 1.00;
 			$source->{'weight'}        = 1.00;
 			$source->{'quote'}         = 1;
 			$source->{'quote'}         = 1;
@@ -1493,7 +1493,7 @@ sub initSources() {
 		my @proxies = ('torrentz.eu/search?q=', 'torrentz.me/search?q=', 'torrentz.ch/search?q=', 'torrentz.in/search?q=');
 		my @proxies = ('torrentz.eu/search?q=', 'torrentz.me/search?q=', 'torrentz.ch/search?q=', 'torrentz.in/search?q=');
 		my $source = findProxy(\@proxies, 'Indexing [\d\,]+ active torrents');
 		my $source = findProxy(\@proxies, 'Indexing [\d\,]+ active torrents');
 		if ($source) {
 		if ($source) {
-			$source->{'weight'}        = 0.85;
+			$source->{'weight'}        = 1.00;
 			$source->{'quote'}         = 1;
 			$source->{'quote'}         = 1;
 			$source->{'search_suffix'} = '';
 			$source->{'search_suffix'} = '';
 			if (!$NO_QUALITY_CHECKS) {
 			if (!$NO_QUALITY_CHECKS) {
@@ -1505,10 +1505,10 @@ sub initSources() {
 
 
 	# ExtraTorrent
 	# ExtraTorrent
 	if ($ENABLE_SOURCE{'ET'}) {
 	if ($ENABLE_SOURCE{'ET'}) {
-		my @proxies = ('http://extratorrent.cc/search/?search=', 'http://etmirror.com/search/?search=', 'http://etproxy.com/search/?search=', 'http://extratorrentlive.com/search/?search=');
+		my @proxies = ('extratorrent.cc/search/?search=', 'etmirror.com/search/?search=', 'etproxy.com/search/?search=', 'extratorrentlive.com/search/?search=');
 		my $source = findProxy(\@proxies, '/search/');
 		my $source = findProxy(\@proxies, '/search/');
 		if ($source) {
 		if ($source) {
-			$source->{'weight'}        = 0.75;
+			$source->{'weight'}        = 1.00;
 			$source->{'quote'}         = 1;
 			$source->{'quote'}         = 1;
 			$source->{'search_suffix'} = '&new=1&x=0&y=0&srt=seeds&order=desc';
 			$source->{'search_suffix'} = '&new=1&x=0&y=0&srt=seeds&order=desc';
 			$sources{'ET'}             = $source;
 			$sources{'ET'}             = $source;