working milepost

This commit is contained in:
2025-07-02 06:56:23 -07:00
parent e4d4ee054d
commit e3773f850a
3 changed files with 20 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
vid/

View File

@ -1,3 +1,5 @@
# dockerfile for containerized yt-dlp
FROM python:3-bookworm FROM python:3-bookworm
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp

17
ytdl.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# Either builds yt-dlp docker container or runs it
if [[ "$1" == "" ]]; then
echo "Arg: build"
echo "Arg: run [yt-dlp target URL]"
fi
if [[ "$1" == "build" ]]; then
echo "Building"
docker build -t ytdl .
fi
if [[ "$1" == "run" ]]; then
echo "Running"
docker run -v vid:/vid ytdl /yt-dlp $2
fi