Add check for ffmpeg#

This commit is contained in:
joachimschmidt557 2019-05-21 19:07:32 +02:00
parent e6ccc03035
commit 04f950a799

View file

@ -6,4 +6,10 @@ if ! (which youtube-dl) ; then
exit 1
fi
# Check for ffmpeg in path
if ! (which ffmpeg) ; then
echo "No ffmpeg found in path"
exit 1
fi
youtube-dl --format bestaudio -x --audio-format mp3 --audio-quality 320K -k $1