Recently Written · git

sad

sad (2f30.org simple audio daemon) with a Cygwin/OSS port on branch cygwin

git clone https://github.com/equwal/sad

Log | Files | Refs


commit 625bba367f1e8793b78e1199c9ae1a2cc1155823
sin <sin@2f30.org>
2014-12-31 15:46:15 +0000

Do not treat "OK" as a song ID

 scripts/sad-add | 1 +
 1 file changed, 1 insertion(+)
diff --git a/scripts/sad-add b/scripts/sad-add
index 5c4dcf3..8afa147 100755
--- a/scripts/sad-add
+++ b/scripts/sad-add
@@ -21,6 +21,7 @@ $paths
 
 # add library to playlist.
 echo "library" | nc -U "$sock" | while read -r song; do
+	if test "$song" = "OK"; then continue; fi
 	id=$(printf '%s' "$song" | cut -d ':' -f 1)
 	echo "add" "$id"
 done | nc -U "$sock"