Преглед изворни кода

More filtering for NZB names

Zachary Kotlarek пре 9 година
родитељ
комит
26bdd65b21
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      findTorrent.pl

+ 3 - 1
findTorrent.pl

@@ -1363,7 +1363,9 @@ sub parseNZB($) {
 		$title = $item->{'description'};
 	}
 	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