How to create torrent file from magnet link using java?

混江龙づ霸主 提交于 2019-11-30 16:45:05

It's impossible to recreate the .torrent file from the magnet link alone.

The way torrent clients gets the .torrent file from a magnet link is:

not really clean but..

Runtime.getRuntime().exec(new String[]{"cmd", "/c","start firefox " + mag});

// needs firefox and a default torrent handler. // mag = magnet string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!