瀏覽代碼

Include a display name in TorrentZ URLs

Zachary Kotlarek 12 年之前
父節點
當前提交
5e10cc243d
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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";