vdl : add checks for ffmpeg and ffprobe.

This commit is contained in:
Dmitry Voronin 2023-11-03 23:24:25 +03:00
parent 1255874f3a
commit 14b85d6c32

View file

@ -2,6 +2,12 @@
# Usage: vdl [LINK]
vdl()
{
# Check that ffmpeg and ffprobe are available.
if [[ "$(ffmpeg -version)" = "" ]] || [[ "$(ffprobe -version)" = "" ]]; then
echo -e "${color_red}ffmpeg and ffprobe are required.${color_default}"
return 2
fi
local target="${@}" # What to download/update.
# If no [LINK] provided, try to read from `src.txt`.