[addon] improve pm logging

This commit is contained in:
TheBeastLT
2021-02-02 21:20:34 +01:00
parent 31b0c85fcf
commit 6c95f0e22c

View File

@@ -108,8 +108,10 @@ async function _resolve(PM, infoHash, cachedEntryInfo, fileIndex, ip) {
if (torrent && statusReady(torrent.status)) {
return _getCachedLink(PM, infoHash, cachedEntryInfo, fileIndex, ip);
} else if (torrent && statusDownloading(torrent.status)) {
console.log(`Downloading to Premiumize ${infoHash} [${fileIndex}]...`);
return StaticResponse.DOWNLOADING;
} else if (torrent && statusError(torrent.status)) {
console.log(`Retrying downloading to Premiumize ${infoHash} [${fileIndex}]...`);
return _retryCreateTorrent(PM, infoHash, cachedEntryInfo, fileIndex);
}
return Promise.reject("Failed Premiumize adding torrent");