MonoTorrent - 磁铁链接.torrent文件 [英] MonoTorrent - Magnet link to Torrent file

查看:1455
本文介绍了MonoTorrent - 磁铁链接.torrent文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来生成使用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

这篇关于MonoTorrent - 磁铁链接.torrent文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆