blob: 21d0358601fc4220bccf22b88e96537f71746171 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# Grab the audio track via yt-dlp, and place in the music folder.
musicdir="/var/lib/mpd/music/yt-dlp"
record="$musicdir/dlrecord"
mkdir -p "$musicdir"
notify-send "Downloading..." "Downloading $1"&
yt-dlp "$1" --format bestaudio -P "$musicdir" -o "%(title)s.%(ext)s"
echo "$1" >> "$record"
notify-send "Song downloaded!" "$1 is now downloaded." &
mpd update
|