Ludwig Lehnert d3a17f6651 finished
2025-02-15 19:47:25 +01:00

30 lines
563 B
Fish
Executable File

#!/bin/env fish
if ! test -d venv
/bin/env python3 -m venv venv
. venv/bin/activate.fish
/bin/env python3 -m pip install -r requirements.txt
echo
else
. venv/bin/activate.fish
end
if ! type -q curl
echo "curl is required to run this script"
exit
end
if ! type -q chromedriver || ! type -q chromium-browser
echo "both chromium-browser and chromedriver are required to run this script"
exit
end
if ! type -q ffmpeg
echo "ffmpeg is required to run this script"
exit
end
if ! /bin/env python3 download.py $argv
echo "download failed"
end