mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] fix torrent trackers retrieval for moch downloads
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user