Skip to content

Commit e44eaff

Browse files
committed
fix(api): install ffmpeg as dep of yt-dlp
1 parent e723f70 commit e44eaff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libs/utils/src/download-media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function downloadPublicMedia(url: string): Promise<DownloadMediaRes
1818
try {
1919
await mkdir(outputPath, { recursive: true })
2020
const proc = Bun.spawn([
21-
'./yt-dlp',
21+
'yt-dlp',
2222
'-x', // Extract audio
2323
'--audio-format',
2424
'mp3',

zerops.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ zerops:
2222
- bun install
2323
- bun run postinstall
2424
- bun run validateEnv
25-
- bun x nx build:executable backend
25+
- bun x nx build:executable backend --verbose --skip-nx-cache
2626
- ls apps/backend
2727
deployFiles:
2828
- apps/backend/dist
@@ -38,6 +38,10 @@ zerops:
3838
- port: 3000
3939
httpSupport: true
4040
prepareCommands:
41+
- echo "Installing ffmpeg"
42+
- add-apt-repository universe
43+
- apt upgrade -y
44+
- apt install -y ffmpeg
4145
- echo "Installing yt-dlp"
4246
- curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/yt-dlp
4347
- chmod a+rx /usr/bin/yt-dlp # Make executable

0 commit comments

Comments
 (0)