fix(torrent): fix search by magnet

This commit is contained in:
Alexey Kasyanchuk
2022-06-06 15:03:36 +03:00
parent 8ecbe329c7
commit bf6b88aaaa
3 changed files with 48 additions and 32 deletions

View File

@ -370,19 +370,6 @@ module.exports = async ({
})
}
getTorrentMetadata();
// double check torrent magnet
let secondTry = false;
const doubleCheckTimeout = setTimeout(() => {
secondTry = true;
logT('search', 'second try search by dht')
torrentClient.getMetadata(text, (torrent) => {
logT('search', 'dht search found something')
searchList.push(baseRowData(torrent));
callback(searchList);
})
}, 8000)
}
else
{