From 19b26e1705006f0d945127a5db9faedaacce8c2b Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Sat, 11 Nov 2023 12:33:12 +0200 Subject: [PATCH] adjust debrid timeouts --- addon/moch/alldebrid.js | 2 +- addon/moch/debridlink.js | 2 +- addon/moch/offcloud.js | 2 +- addon/moch/premiumize.js | 2 +- addon/moch/realdebrid.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addon/moch/alldebrid.js b/addon/moch/alldebrid.js index ae586aa..2999ca7 100644 --- a/addon/moch/alldebrid.js +++ b/addon/moch/alldebrid.js @@ -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) { diff --git a/addon/moch/debridlink.js b/addon/moch/debridlink.js index 0a47198..9a17c4c 100644 --- a/addon/moch/debridlink.js +++ b/addon/moch/debridlink.js @@ -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) { diff --git a/addon/moch/offcloud.js b/addon/moch/offcloud.js index cbc2a2c..f85cea9 100644 --- a/addon/moch/offcloud.js +++ b/addon/moch/offcloud.js @@ -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) { diff --git a/addon/moch/premiumize.js b/addon/moch/premiumize.js index 2dcb1ea..3aa639d 100644 --- a/addon/moch/premiumize.js +++ b/addon/moch/premiumize.js @@ -183,5 +183,5 @@ function statusReady(status) { } async function getDefaultOptions(ip) { - return { timeout: 30000 }; + return { timeout: 5000 }; } diff --git a/addon/moch/realdebrid.js b/addon/moch/realdebrid.js index e78b36a..ed51148 100644 --- a/addon/moch/realdebrid.js +++ b/addon/moch/realdebrid.js @@ -395,5 +395,5 @@ function infringingFile(error) { } async function getDefaultOptions(ip) { - return { ip, timeout: 2000 }; + return { ip, timeout: 5000 }; }