Procházet zdrojové kódy

Allow mid-stream name matches. This will find more results; hopefully it does not reduce the quality too much.

Zachary Kotlarek před 14 roky
rodič
revize
1db0e982c7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      findTorrent.pl

+ 1 - 1
findTorrent.pl

@@ -534,7 +534,7 @@ $showRegex =~ s/[\W_]+/\[\\W_\].*/g;
 foreach my $tor (@tors) {
 
 	# Skip files that don't start with our show title
-	if (!($tor->{'title'} =~ /^${showRegex}[\W_]/i)) {
+	if (!($tor->{'title'} =~ /${showRegex}[\W_]/i)) {
 		if ($DEBUG) {
 			print STDERR 'Skipping file: Title does not match (' . $showRegex . '): ' . $tor->{'title'} . "\n";
 		}