From e5bf4e6f503a7134437ae1796edf712cfb845ec8 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 13 Aug 2019 03:35:50 -0500 Subject: [PATCH] ptgdp: Switch to mpd/mpc --- ptgdp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ptgdp b/ptgdp index 07726d3..d97d29d 100755 --- a/ptgdp +++ b/ptgdp @@ -78,9 +78,9 @@ clearcache() { helptext() { cat << EOF Usage: $_name [OPTION] -Use youtube-dl and audacious to queue up a playlist given a file of only search +Use youtube-dl and mpc to queue up a playlist given a file of only search queries. The first result found is the one that will be downloaded. Downloaded -files are cached in your Music folder under "JPTGDP Songs" for offline use. +files are cached in your Music folder under "PTGDP Songs" for offline use. -f The playlist file to load. The file should be plaintext containing a YouTube search query on each line. Comments are supported and prepended with # @@ -182,9 +182,10 @@ playlist() { else dlexist+=1 fi - [ -z "$_optdownloadonly" ] && audacious -e "$filename" + validatedeps mpc || continue + [ -z "$_optdownloadonly" ] && mpc add "$filename" if [ -n "$_optautoplay" ]; then - audacious -p + mpc play unset _optautoplay fi else