代码之家  ›  专栏  ›  技术社区  ›  Anthony

通过Webtorrent进行种子植入无法与节点上的Webtorrent混合使用

  •  0
  • Anthony  · 技术社区  · 5 年前

    苹果操作系统10.14.4

    净现值:6.13.4

    节点:v8.17.0

    var WebTorrent = require('webtorrent-hybrid')
    
    var client = new WebTorrent()
    
    client.on('error', (err) => {
      console.error(`fatalError ${err.message || err}`);
      process.exit(1);
    });
    
    client.seed('./c5l.mp4', function (torrent) {
      torrent.on('warning', function (err) {
        console.warn(err);
      });
      torrent.on('error', function (err) {
        console.error(err);
      });
    
      console.log('client.seed done', {
        magnetURI: torrent.magnetURI,
        ready: torrent.ready,
        paused: torrent.paused,
        done: torrent.done,
        infohash: torrent.infoHash
      });
    });
    

    把我的磁铁串给我。在前端我有:

    script(src = 'https://cdnjs.cloudflare.com/ajax/libs/webtorrent/0.107.17/webtorrent.min.js')
    
    script.
      var client = new WebTorrent()
    
    
    // working torrentId
      var torrentId2 = 'magnet:?xt=urn:btih:c9e15763f722f23e98a29decdfae341b98d53056&dn=Cosmos+Laundromat&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fcosmos-laundromat.torrent'
    
    // failing torrentId
      var torrentId5 = 'magnet:?xt=urn:btih:f9435fb103d53a0b3cce14afbae867cc6999d76b&dn=c5l.mp4&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.openwebtorrent.com'
    
      client.add(torrentId5, function (torrent) {
        // Torrents can contain many files. Let's use the .mp4 file
        var file = torrent.files.find(function (file) {
          console.log(file);
    
          return file.name.endsWith('.mp4')
        })
    
        // Display the file by adding it to the DOM.
        // Supports video, audio, image files, and more!
        file.appendTo('body')
      })
    

    WebSocket connection to 'wss://tracker.fastcast.nz/' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

    太好了,所以我把追踪器从查询环中删除,再试一次:

    WebSocket connection to 'wss://tracker.btorrent.xyz/' failed: Unknown reason

    如果我在勇敢号上使用磁铁,它就挂在那里 Loading the torrent file list 旋转器无休止地旋转。

    发生什么事?谢谢

    0 回复  |  直到 5 年前
        1
  •  0
  •   Joseph Morales    4 年前
    // working torrentId
    var torrentId2
    magnet:?xt=urn:btih:c9e15763f722f23e98a29decdfae341b98d53056&dn=Cosmos+Laundromat&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fcosmos-laundromat.torrent
    

    是一个良好的种子文件是指它的工作90-100%

    // failing torrentId
    var torrentId5 = 'magnet:?xt=urn:btih:f9435fb103d53a0b3cce14afbae867cc6999d76b&dn=c5l.mp4&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.openwebtorrent.com'
    

    是无文件或低种子文件意味着它工作0.1-10%

        2
  •  0
  •   Joseph Morales    4 年前

    使用通过 webtorrent hybrid程序包我首先得到一些错误:

    连接建立:net::ERR_NAME_NOT_解析

    原因

    太好了,再把它拿开我有东西挂着什么都没有

    如果我在Brave上使用磁铁,它就会挂在加载torrent文件时挂起 列表和微调器无休止地旋转。

    发生什么事?谢谢

    连接建立:net::ERR_NAME_NOT_解析

    wss://tracker.fastcast.nz/ 于2019年去世并由业主停止支持

    失败:未知原因

    如果我在Brave上使用磁铁,它就会挂在加载torrent文件时挂起 列表和微调器无休止地旋转。

    客户端在下载/播放大文件和不受支持的文件格式时遇到一些问题,例如 .mkv(视频/x-Matroska)