Explorar el Código

More filtering for NZB names

Zachary Kotlarek hace 9 años
padre
commit
26bdd65b21
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      findTorrent.pl

+ 3 - 1
findTorrent.pl

@@ -1363,7 +1363,9 @@ sub parseNZB($) {
 		$title = $item->{'description'};
 		$title = $item->{'description'};
 	}
 	}
 	if ($title) {
 	if ($title) {
-		$url .= '#' . uri_encode($title);
+		my $title_clean = $title;
+		$title_clean =~ s/[\/\(\)]/_/g;
+		$url .= '#' . uri_encode($title_clean);
 	}
 	}
 
 
 	# Extract the season and episode numbers
 	# Extract the season and episode numbers