19 lines
329 B
Bash
Executable file
19 lines
329 B
Bash
Executable file
#!/bin/sh
|
|
|
|
usage() {
|
|
echo youtube-mp3
|
|
}
|
|
|
|
# Check for youtube-dl in path
|
|
if ! (which youtube-dl) ; then
|
|
echo "No youtube-dl found in path"
|
|
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
|