mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] improve pm logging
This commit is contained in:
@@ -108,8 +108,10 @@ async function _resolve(PM, infoHash, cachedEntryInfo, fileIndex, ip) {
|
|||||||
if (torrent && statusReady(torrent.status)) {
|
if (torrent && statusReady(torrent.status)) {
|
||||||
return _getCachedLink(PM, infoHash, cachedEntryInfo, fileIndex, ip);
|
return _getCachedLink(PM, infoHash, cachedEntryInfo, fileIndex, ip);
|
||||||
} else if (torrent && statusDownloading(torrent.status)) {
|
} else if (torrent && statusDownloading(torrent.status)) {
|
||||||
|
console.log(`Downloading to Premiumize ${infoHash} [${fileIndex}]...`);
|
||||||
return StaticResponse.DOWNLOADING;
|
return StaticResponse.DOWNLOADING;
|
||||||
} else if (torrent && statusError(torrent.status)) {
|
} else if (torrent && statusError(torrent.status)) {
|
||||||
|
console.log(`Retrying downloading to Premiumize ${infoHash} [${fileIndex}]...`);
|
||||||
return _retryCreateTorrent(PM, infoHash, cachedEntryInfo, fileIndex);
|
return _retryCreateTorrent(PM, infoHash, cachedEntryInfo, fileIndex);
|
||||||
}
|
}
|
||||||
return Promise.reject("Failed Premiumize adding torrent");
|
return Promise.reject("Failed Premiumize adding torrent");
|
||||||
|
|||||||
Reference in New Issue
Block a user