🍙 bugfix

This commit is contained in:
Shiba 2022-05-01 12:25:54 +03:00 committed by GitHub
parent ce40824a0c
commit c2f894ec61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)