2 Commits

Author SHA1 Message Date
melod1n 6dce990c4c update ytdl 2026-02-25 17:02:46 +03:00
melod1n 0c5d17663c update Dockerfiles to include downloading ffmpeg 2026-02-25 16:53:26 +03:00
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -12,6 +12,7 @@ RUN npx tsc -p tsconfig.build.json
# ---- runtime ---- # ---- runtime ----
FROM node:lts-alpine AS runner FROM node:lts-alpine AS runner
RUN apk add --no-cache ffmpeg
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
+1
View File
@@ -12,6 +12,7 @@ RUN bunx tsc -p tsconfig.build.json
# ---- runtime ---- # ---- runtime ----
FROM oven/bun:alpine AS runner FROM oven/bun:alpine AS runner
RUN apk add --no-cache ffmpeg
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
+2 -1
View File
@@ -71,7 +71,8 @@ export async function downloadVideoFromYouTube(url: string): Promise<{
}); });
const audioWebStream = await videoInfo.download({ const audioWebStream = await videoInfo.download({
itag: audioFormat.itag itag: audioFormat.itag,
client: "ANDROID"
}); });
const videoStream = Readable.fromWeb(videoWebStream as any); const videoStream = Readable.fromWeb(videoWebStream as any);