From b418128686a1fc359883d0c6a279443b985a786f Mon Sep 17 00:00:00 2001 From: finn Date: Wed, 2 Jul 2025 07:31:38 -0700 Subject: [PATCH] basically working fully w/ mp3 --- Dockerfile | 2 ++ ytdl.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b7701d6..0f765c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,5 +2,7 @@ FROM python:3-bookworm +RUN apt update && apt install -y ffmpeg + RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp RUN chmod +x ./yt-dlp diff --git a/ytdl.sh b/ytdl.sh index 4a9825c..39d5e0f 100755 --- a/ytdl.sh +++ b/ytdl.sh @@ -13,5 +13,5 @@ fi if [[ "$1" == "run" ]]; then echo "Running" - docker run -v vid:/vid ytdl /yt-dlp $2 + docker run --rm -v $PWD/vid:/vid ytdl /yt-dlp -P /vid -x --audio-format mp3 $2 fi