mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-04-20 22:32:05 +00:00
[addon] fix torrent trackers retrieval for moch downloads
This commit is contained in:
parent
76c80e0f2a
commit
651be21948
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ function getAllTrackers() {
|
|||
}
|
||||
|
||||
async function getMagnetLink(infoHash) {
|
||||
const torrent = getTorrent(infoHash).catch(() => ({ infoHash }));
|
||||
const torrent = await getTorrent(infoHash).catch(() => ({ infoHash }));
|
||||
const torrentTrackers = torrent.trackers && torrent.trackers.split(',');
|
||||
const animeTrackers = torrent.type === Type.ANIME ? ALL_TRACKERS : undefined;
|
||||
const trackers = torrentTrackers || animeTrackers;
|
||||
|
|
|
|||
Loading…
Reference in a new issue