add soundcloud

This commit is contained in:
cho 2023-05-04 22:21:53 +07:00
parent eecb112ad3
commit c896b4f65e

View File

@ -4,7 +4,7 @@ file="$(wl-paste)"
directory="$HOME/Music" directory="$HOME/Music"
case "$file" in case "$file" in
*youtube.com*|*youtu.be*|*bandcamp.com*) *youtube.com*|*youtu.be*|*bandcamp.com*|*soundcloud.com*)
notify-send "Downloading" "$file" notify-send "Downloading" "$file"
cd $directory && yt-dlp --embed-metadata --embed-thumbnail -xc -f bestaudio/best --restrict-filenames "$file" && notify-send "Music added!" "$file is now saved to the music directory." cd $directory && yt-dlp --embed-metadata --embed-thumbnail -xc -f bestaudio/best --restrict-filenames "$file" && notify-send "Music added!" "$file is now saved to the music directory."
;; ;;