fix: build MediaFlow Proxy URL without concatenation
Fixes issues with trailing slashes
This commit is contained in:
parent
2ed2ea372a
commit
3ac1063c9b
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ interface ExtractResult {
|
|||
export const supportsMediaFlowProxy = (ctx: Context): boolean => !!ctx.config['mediaFlowProxyUrl'];
|
||||
|
||||
const buildMediaFlowProxyExtractorUrl = (ctx: Context, host: string, url: URL): URL => {
|
||||
const mediaFlowProxyUrl = new URL(`${ctx.config.mediaFlowProxyUrl}/extractor/video`);
|
||||
const mediaFlowProxyUrl = new URL('/extractor/video', ctx.config.mediaFlowProxyUrl);
|
||||
|
||||
mediaFlowProxyUrl.searchParams.append('host', host);
|
||||
mediaFlowProxyUrl.searchParams.append('api_password', `${ctx.config.mediaFlowProxyPassword}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue