dump debrid link and pass ip

This commit is contained in:
TheBeastLT
2022-01-28 15:33:33 +01:00
parent c3b37b3537
commit c8f25b3089
3 changed files with 28 additions and 3436 deletions

View File

@@ -51,8 +51,8 @@ async function getCatalog(apiKey, offset = 0) {
})));
}
async function getItemMeta(itemId, apiKey) {
const options = await getDefaultOptions();
async function getItemMeta(itemId, apiKey, ip) {
const options = await getDefaultOptions(ip);
const DL = new DebridLinkClient(apiKey, options);
return DL.seedbox.list(itemId)
.then(response => response.value[0])
@@ -132,7 +132,7 @@ async function _unrestrictLink(DL, torrent, fileIndex) {
}
async function getDefaultOptions(ip) {
return { timeout: 30000 };
return { ip, timeout: 30000 };
}
function statusDownloading(torrent) {