fix alldebrid retry create torrent

This commit is contained in:
TheBeastLT
2023-10-12 09:03:29 +03:00
parent d89ff90475
commit 76c3e9ac3f

View File

@@ -115,8 +115,7 @@ async function _createOrFindTorrent(AD, infoHash) {
}
async function _retryCreateTorrent(AD, infoHash, encodedFileName, fileIndex) {
const newTorrentId = await _createTorrent(AD, infoHash);
const newTorrent = await AD.magnet.status(newTorrentId);
const newTorrent = await _createTorrent(AD, infoHash);
return newTorrent && statusReady(newTorrent.statusCode)
? _unrestrictLink(AD, newTorrent, encodedFileName, fileIndex)
: StaticResponse.FAILED_DOWNLOAD;