C#解析Torrent获取磁力链
NuGet添加 MonoTorrent
using MonoTorrent;
string file = @"D:\下载\5.torrent";
Torrent torrent = Torrent.Load(file);
Console.WriteLine("magnet:?xt=urn:btih:" + torrent.InfoHash.ToHex());
Console.ReadLine();magnet:?xt=urn:btih:EA6380C88E8B58096B0100E6F0239800BF968848
转载请注明出处。