mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
adjust debrid timeouts
This commit is contained in:
@@ -160,7 +160,7 @@ async function _unrestrictLink(AD, torrent, encodedFileName, fileIndex) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getDefaultOptions(ip) {
|
async function getDefaultOptions(ip) {
|
||||||
return { base_agent: AGENT, timeout: 30000 };
|
return { base_agent: AGENT, timeout: 5000 };
|
||||||
}
|
}
|
||||||
|
|
||||||
export function toCommonError(error) {
|
export function toCommonError(error) {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ async function _unrestrictLink(DL, torrent, fileIndex) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getDefaultOptions(ip) {
|
async function getDefaultOptions(ip) {
|
||||||
return { ip, timeout: 30000 };
|
return { ip, timeout: 10000 };
|
||||||
}
|
}
|
||||||
|
|
||||||
export function toCommonError(error) {
|
export function toCommonError(error) {
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ async function _unrestrictLink(OC, infoHash, torrent, cachedEntryInfo, fileIndex
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getDefaultOptions(ip) {
|
async function getDefaultOptions(ip) {
|
||||||
return { ip, timeout: 30000 };
|
return { ip, timeout: 5000 };
|
||||||
}
|
}
|
||||||
|
|
||||||
export function toCommonError(error) {
|
export function toCommonError(error) {
|
||||||
|
|||||||
@@ -183,5 +183,5 @@ function statusReady(status) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getDefaultOptions(ip) {
|
async function getDefaultOptions(ip) {
|
||||||
return { timeout: 30000 };
|
return { timeout: 5000 };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -395,5 +395,5 @@ function infringingFile(error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getDefaultOptions(ip) {
|
async function getDefaultOptions(ip) {
|
||||||
return { ip, timeout: 2000 };
|
return { ip, timeout: 5000 };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user