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