Sfoglia il codice sorgente

Include a display name in TorrentZ URLs

Zachary Kotlarek 12 anni fa
parent
commit
5e10cc243d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      findTorrent.pl

+ 1 - 1
findTorrent.pl

@@ -778,7 +778,7 @@ foreach my $content (@html_content) {
 
 			# Construct a magnet URL from the hash
 			# Assume the seconary lookup will append a list of trackers
-			my $url = 'magnet:?xt=urn:btih:' . $hash;
+			my $url = 'magnet:?xt=urn:btih:' . $hash . '&dn=' . uri_encode($title, { 'encode_reserved' => 1 });
 
 			if ($DEBUG) {
 				print STDERR 'Found file (' . $title . '): ' . $url . "\n";