fixed postprocessor args (#256)

* fixed postprocessor args

* updated node builder version

* temporary fix for https://github.com/nodejs/corepack/issues/612
This commit is contained in:
Marco Piovanello
2025-02-03 10:24:48 +01:00
committed by GitHub
parent 2f2eca2bff
commit 67b01f9e0b
2 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
# Node (pnpm) ------------------------------------------------------------------
FROM node:20-slim AS ui
FROM node:22-slim AS ui
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN corepack prepare pnpm@10.0.0 --activate && corepack enable
COPY . /usr/src/yt-dlp-webui
WORKDIR /usr/src/yt-dlp-webui/frontend

View File

@@ -41,10 +41,10 @@ export class RPCClient {
})
}
private argsSanitizer(args: string) {
private argsSanitizer(args: string): string[] {
return args
.split(' ')
.map(a => a.trim().replaceAll("'", '').replaceAll('"', ''))
.map(a => a.trim().replaceAll('"', ''))
.filter(Boolean)
}