fix alldebrid retry create torrent
This commit is contained in:
@@ -115,8 +115,7 @@ async function _createOrFindTorrent(AD, infoHash) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function _retryCreateTorrent(AD, infoHash, encodedFileName, fileIndex) {
|
async function _retryCreateTorrent(AD, infoHash, encodedFileName, fileIndex) {
|
||||||
const newTorrentId = await _createTorrent(AD, infoHash);
|
const newTorrent = await _createTorrent(AD, infoHash);
|
||||||
const newTorrent = await AD.magnet.status(newTorrentId);
|
|
||||||
return newTorrent && statusReady(newTorrent.statusCode)
|
return newTorrent && statusReady(newTorrent.statusCode)
|
||||||
? _unrestrictLink(AD, newTorrent, encodedFileName, fileIndex)
|
? _unrestrictLink(AD, newTorrent, encodedFileName, fileIndex)
|
||||||
: StaticResponse.FAILED_DOWNLOAD;
|
: StaticResponse.FAILED_DOWNLOAD;
|
||||||
|
|||||||
Reference in New Issue
Block a user