mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-01-11 22:40:22 +00:00
adjust debrid timeouts
This commit is contained in:
parent
4c2f4306b1
commit
19b26e1705
5 changed files with 5 additions and 5 deletions
|
|
@ -160,7 +160,7 @@ async function _unrestrictLink(AD, torrent, encodedFileName, fileIndex) {
|
|||
}
|
||||
|
||||
async function getDefaultOptions(ip) {
|
||||
return { base_agent: AGENT, timeout: 30000 };
|
||||
return { base_agent: AGENT, timeout: 5000 };
|
||||
}
|
||||
|
||||
export function toCommonError(error) {
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ async function _unrestrictLink(DL, torrent, fileIndex) {
|
|||
}
|
||||
|
||||
async function getDefaultOptions(ip) {
|
||||
return { ip, timeout: 30000 };
|
||||
return { ip, timeout: 10000 };
|
||||
}
|
||||
|
||||
export function toCommonError(error) {
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ async function _unrestrictLink(OC, infoHash, torrent, cachedEntryInfo, fileIndex
|
|||
}
|
||||
|
||||
async function getDefaultOptions(ip) {
|
||||
return { ip, timeout: 30000 };
|
||||
return { ip, timeout: 5000 };
|
||||
}
|
||||
|
||||
export function toCommonError(error) {
|
||||
|
|
|
|||
|
|
@ -183,5 +183,5 @@ function statusReady(status) {
|
|||
}
|
||||
|
||||
async function getDefaultOptions(ip) {
|
||||
return { timeout: 30000 };
|
||||
return { timeout: 5000 };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -395,5 +395,5 @@ function infringingFile(error) {
|
|||
}
|
||||
|
||||
async function getDefaultOptions(ip) {
|
||||
return { ip, timeout: 2000 };
|
||||
return { ip, timeout: 5000 };
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue