#!/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