mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
fix alldebrid retry create torrent
This commit is contained in:
parent
d89ff90475
commit
76c3e9ac3f
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue