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