dump debrid link and pass ip
This commit is contained in:
@@ -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) {
|
||||
|
||||
3456
addon/package-lock.json
generated
3456
addon/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@
|
||||
"bottleneck": "^2.19.5",
|
||||
"cache-manager": "^3.4.4",
|
||||
"cache-manager-mongodb": "^0.3.0",
|
||||
"debrid-link-api": "^1.0.0",
|
||||
"debrid-link-api": "^1.0.1",
|
||||
"express-rate-limit": "^5.5.1",
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
"magnet-uri": "^6.2.0",
|
||||
|
||||
Reference in New Issue
Block a user