Skip to content

Commit

Permalink
fix(api): install ffmpeg as dep of yt-dlp
Browse files Browse the repository at this point in the history
  • Loading branch information
BleedingDev committed Nov 16, 2024
1 parent e723f70 commit e44eaff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/utils/src/download-media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function downloadPublicMedia(url: string): Promise<DownloadMediaRes
try {
await mkdir(outputPath, { recursive: true })
const proc = Bun.spawn([
'./yt-dlp',
'yt-dlp',
'-x', // Extract audio
'--audio-format',
'mp3',
Expand Down
6 changes: 5 additions & 1 deletion zerops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ zerops:
- bun install
- bun run postinstall
- bun run validateEnv
- bun x nx build:executable backend
- bun x nx build:executable backend --verbose --skip-nx-cache
- ls apps/backend
deployFiles:
- apps/backend/dist
Expand All @@ -38,6 +38,10 @@ zerops:
- port: 3000
httpSupport: true
prepareCommands:
- echo "Installing ffmpeg"
- add-apt-repository universe
- apt upgrade -y
- apt install -y ffmpeg
- echo "Installing yt-dlp"
- curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/yt-dlp
- chmod a+rx /usr/bin/yt-dlp # Make executable
Expand Down

1 comment on commit e44eaff

@vercel
Copy link

@vercel vercel bot commented on e44eaff Nov 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./apps/legacy_nmit

web-naucmeits-projects.vercel.app
web-git-master-naucmeits-projects.vercel.app
naucme.it

Please sign in to comment.