commit 4128454

hovercats  ·  2026-09-02 06:01:57 +0000 UTC
parent 756c1aa
use loadlist instead of loadfile. it doesnt seem to work properly for me for some reason
1 files changed,  +2, -2
M ampv
M ampv
+2, -2
 1@@ -15,8 +15,8 @@ switch($1) {
 2 		songfile=`{getfilepath}
 3 		printf '%s\n' $"songfile >> $playlist
 4 	case -A
 5-		song=`{find $musicdir -type f -name *.opus | $menu}
 6-		printf 'loadfile '$song' append\n' | nc -UN $socket
 7+		find $musicdir -type f -name *.opus | $menu >$tmpfile
 8+		printf 'loadlist '$tmpfile' append\n' | nc -UN $socket
 9 	case -d
10 		songfile=`{getfilepath}
11 		grep -v $"songfile $playlist > $tmpfile