How to use the torrent-search-api.getMagnet 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 fabiospampinato / cliflix / src / index.ts View on Github external
async getMagnet ( torrent ) {

    try {

      return await torrentSearch.getMagnet ( torrent );

    } catch ( e ) {

      return;

    }

  },
github fabiospampinato / cliflix / dist / index.js View on Github external
return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        _a.trys.push([0, 2, , 3]);
                        return [4 /*yield*/, torrentSearch.getMagnet(torrent)];
                    case 1: return [2 /*return*/, _a.sent()];
                    case 2:
                        e_3 = _a.sent();
                        return [2 /*return*/];
                    case 3: return [2 /*return*/];
                }
            });
        });

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