Browse Source

Improve filters for search strings

Zachary Kotlarek 12 năm trước cách đây
mục cha
commit
e34a47e837
1 tập tin đã thay đổi với 3 bổ sung và 1 xóa
  1. 3 1
      findTorrent.pl

+ 3 - 1
findTorrent.pl

@@ -427,10 +427,12 @@ if (scalar(@urls) < 1) {
 	my $safeShow = $show;
 	$safeShow =~ s/\s+\&\s+/ and /i;
 	$safeShow =~ s/^\s*The\b//i;
-	$safeShow =~ s/\'//g;
+	$safeShow =~ s/\s+\-\s+/ /g;
+	$safeShow =~ s/[\'\:]//g;
 	$safeShow =~ s/[^\w\"\-]+/ /g;
 	$safeShow =~ s/^\s+//;
 	$safeShow =~ s/\s+$//;
+	$safeShow =~ s/\s\s+/ /g;
 	$safeShow =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;
 	$safeShow =~ s/\%20/\+/g;