diff --git a/src/common/yt/urlResolve.ts b/src/common/yt/urlResolve.ts index 9468bc6..5985bfe 100644 --- a/src/common/yt/urlResolve.ts +++ b/src/common/yt/urlResolve.ts @@ -2,6 +2,7 @@ import { chunk } from "lodash" import { sign } from "../crypto" import { getExtensionSettingsAsync, ytUrlResolversSettings } from "../settings" import { LbryPathnameCache } from "./urlCache" +import path from "path" const QUERY_CHUNK_SIZE = 100 @@ -41,7 +42,7 @@ export async function resolveById(params: Paramaters, progressCallback?: (progre if (params.length === 0) return results const url = new URL(`${urlResolverSetting.href}`) - url.pathname = '/resolve' + url.pathname = path.join(url.pathname, '/resolve') url.searchParams.set('video_ids', params.filter((item) => item.type === 'video').map((item) => item.id).join(',')) url.searchParams.set('channel_ids', params.filter((item) => item.type === 'channel').map((item) => item.id).join(',')) if (urlResolverSetting.signRequest && publicKey && privateKey)