How to use the torrent-search-api function in torrent-search-api

To help you get started, we’ve selected a few torrent-search-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Lunik / tcloud / src / server / model / search / torrent.js View on Github external
constructor () {

    this.log = new Delogger('Search')

    if (config.torrent.providers.includes('jackett') || config.torrent.providers.includes('Jackett')) {
      this.api = new JackettAPI(config.torrent.jackett)
    } else {
      this.api = new TorrentSearchApi()

      config.torrent.providers.forEach((provider) => this.api.enableProvider(provider))
    }
  }

torrent-search-api

Yet another node torrent scraper based on x-ray. (Support iptorrents, torrentleech, torrent9, Yyggtorrent, ThePiratebay, torrentz2, 1337x, KickassTorrent, Rarbg, TorrentProject, Yts, Limetorrents, Eztv)

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis