blob: 1d9b28faffbcd310371a505ab89e32eb65112d5f (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#!/bin/sh
# Download a Youtube song.
# Flag: q - Do not print (as first param only)
[ "$1" = "q" ] && flag="1>/dev/null" || flag=""
[ "$1" = "q" ] && param="$2" || param="$1"
yt-dlp -x "$param" -o "$HOME/songs/%(title)s.%(ext)s" $flag
|