MonoTorrent - 磁铁链接.torrent文件磁铁、链接、文件、MonoTorrent

2023-09-06 15:37:02 作者:奶茶少冰正常糖

有没有一种方法来生成使用MonoTorrent NET库磁铁链接的.torrent文件?如果是的话可以用一个例子有人解释?我搜索的网站,以及Google搜索,但不能找到一个解决方案。如果它是不可能在那里commnd行实用程序的任何其他窗口,将完成这项工作?感谢和AP preciate乌拉圭回合的帮助提前!

Is there a way to generate .torrent file from a magnet link using the MonoTorrent .Net library? If so can someone explain with an example? I searched the site as well as googled but cant find a solution. if it is not possible are there any other windows commnd line utility that will get the job done? thanks and appreciate ur help in advance!

推荐答案

是的,它可以使用monotorrent库来完成。

yes, It could be done using the monotorrent library.

您可以采取的磁铁链接的散列值,并用它来创建一个任务管理器,在下载之前将创建一个种子文件。

you could take the hash value from the magnet link and use it to create a torrent manager that will create a torrent file before downloading.

如果是这样的磁铁链接:

if this were the magnet link:

磁铁:XT =瓮:btih:18981bc9759950b4715ad46adcaf514e6a773cfe

magnet:?xt=urn:btih:18981bc9759950b4715ad46adcaf514e6a773cfe

hash=18981bc9759950b4715ad46adcaf514e6a773cfe;
manager = new TorrentManager(InfoHash.FromHex(hash), downloadsPath, torrentDefaults,     downloadsPathForTorrent);

这应该下载torrent文件为downloadsPathForTorrent',你可以尽快停止下载,因为它开始。

this should download a torrent file to 'downloadsPathForTorrent', and you can stop the download as soon as it begins.

希望这有助于。

有关如何实现此结账的monotorrent文档的详细信息:

for more information on how to implement this checkout the monotorrent documentation:

http://www.mono-project.com/MonoTorrent