From 45e4e2fda5f10ce893930ff769a70da91c27f219 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Mon, 1 Feb 2021 14:53:30 +0100 Subject: [PATCH] [addon] update ad agent --- addon/moch/alldebrid.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addon/moch/alldebrid.js b/addon/moch/alldebrid.js index 42454c6..c7441c4 100644 --- a/addon/moch/alldebrid.js +++ b/addon/moch/alldebrid.js @@ -7,6 +7,7 @@ const { cacheWrapProxy, cacheUserAgent } = require('../lib/cache'); const { getMagnetLink } = require('../lib/magnetHelper'); const KEY = 'alldebrid'; +const AGENT = 'torrentio'; async function getCachedStreams(streams, apiKey) { const options = await getDefaultOptions(apiKey); @@ -153,7 +154,7 @@ async function getDefaultOptions(id, ip) { const proxy = await cacheWrapProxy('moch', () => getRandomProxy()).catch(() => getRandomProxy()); const agent = getProxyAgent(proxy); - return { timeout: 30000, agent: agent, headers: { 'User-Agent': userAgent } }; + return { base_agent: AGENT, timeout: 30000, agent: agent, headers: { 'User-Agent': userAgent } }; } function statusError(statusCode) {