duanqinqian5299 2016-11-26 08:43
浏览 60

直接在超链接下载磁铁或.torrent文件

I am trying to create an html hyperlink to download .torrent or magnet file directly from extratorrent.cc like yts.ag is doing but my link is not working?

<a rel="nofollow" title="Download verified torrent file" href="magnet:?xt=urn:btih:d84ac81cb6bb3ae055aca1a75b4ddeb30f00e38b&dn=Suicide.Squad.2016.EXTENDED.720p.WEBRip.x264.AAC-ETRG&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fzer0day.to%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce">Download torrent</a>

</div>
  • 写回答

1条回答 默认 最新

  • duande9301 2018-03-23 20:54
    关注

    What about using some tool like https://webtorrent.io/intro

    var WebTorrent = require('webtorrent')
    
    var client = new WebTorrent()
    
    var magnetURI = 'magnet: ...'
    
    client.add(magnetURI, { path: '/path/to/folder' }, function (torrent) {   torrent.on('done', function () {
        console.log('torrent download finished')   }) })
    
    评论

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题