blob: c0177ace52d20e7fca5fbc015144e85101d2c8d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
# A script to not make me type all that argument **** when I want to download music.
# Yes I am lazy.
if [[ -n "$1" ]]; then
youtube-dl "$1" --extract-audio -i -o "%(title)s.%(ext)s" --audio-format mp3 &&
exit 0 ||
exit 1
else
printf "[ Error ] Not enough arguments.\n"
exit 1
fi
|