mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 21:26:53 +00:00
dump debrid link and pass ip
This commit is contained in:
parent
c3b37b3537
commit
c8f25b3089
3 changed files with 28 additions and 3436 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue