From 76c3e9ac3f30904c92e9a2b7a1b48a7f1043fa69 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Thu, 12 Oct 2023 09:03:29 +0300 Subject: [PATCH] fix alldebrid retry create torrent --- addon/moch/alldebrid.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addon/moch/alldebrid.js b/addon/moch/alldebrid.js index 5d487a3..0bf365d 100644 --- a/addon/moch/alldebrid.js +++ b/addon/moch/alldebrid.js @@ -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;