working milepost
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
vid/
|
@ -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
17
ytdl.sh
Executable 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
|
Reference in New Issue
Block a user