mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
🍙 bugfix
This commit is contained in:
parent
ce40824a0c
commit
c2f894ec61
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue