Explorar o código

Encode titles in NZB URLs. Spaces are allowed after the #, but it makes shell scripts more complicated

Zachary Kotlarek %!s(int64=9) %!d(string=hai) anos
pai
achega
c23691b5d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      findTorrent.pl

+ 1 - 1
findTorrent.pl

@@ -1328,7 +1328,7 @@ sub parseNZB($) {
 		$title = $item->{'description'};
 	}
 	if ($title) {
-		$url .= '#' . $title;
+		$url .= '#' . uri_encode($title);
 	}
 
 	# Extract the season and episode numbers