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

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