Skip to content

Commit

Permalink
fixed postprocessor args (#256)
Browse files Browse the repository at this point in the history
* fixed postprocessor args

* updated node builder version

* temporary fix for nodejs/corepack#612
  • Loading branch information
marcopiovanello authored Feb 3, 2025
1 parent 2f2eca2 commit 67b01f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 [email protected] --activate && corepack enable
COPY . /usr/src/yt-dlp-webui

WORKDIR /usr/src/yt-dlp-webui/frontend
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/rpcClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 67b01f9

Please sign in to comment.