From 222a71948b630aeb7a3e12ebbb45288feee396fe Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Mon, 14 Mar 2022 18:10:53 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=99=20changed=20QUERY=5FCHUNK=5FSIZE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - odysee api started to give 520 response with the previous size --- src/common/yt/urlResolve.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/yt/urlResolve.ts b/src/common/yt/urlResolve.ts index 41d1944..d02e3d4 100644 --- a/src/common/yt/urlResolve.ts +++ b/src/common/yt/urlResolve.ts @@ -3,7 +3,7 @@ import { getExtensionSettingsAsync, Keys, SingleValueAtATime, Values, YtUrlResol import { LbryPathnameCache } from "./urlCache" // const LBRY_API_HOST = 'https://api.odysee.com'; MOVED TO SETTINGS -const QUERY_CHUNK_SIZE = 300 +const QUERY_CHUNK_SIZE = 100 export interface YtIdResolverDescriptor { id: string @@ -102,4 +102,4 @@ export async function resolveById(descriptors: YtIdResolverDescriptor[], progres })) if (progressCallback) progressCallback(1) return results -} \ No newline at end of file +}