From 7677856d0a6dd4f5744d77d6214859c8d945b886 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Wed, 25 Sep 2024 13:24:15 +0200 Subject: [PATCH] Interesting fuckup --- src/bin/noise | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bin/noise b/src/bin/noise index 46832ee..2accedd 100755 --- a/src/bin/noise +++ b/src/bin/noise @@ -121,7 +121,10 @@ def "main insert" [ --host(-H): string # mpd host , ...uri: string # URI to insert ] { let host = getHost $host - $in | mpc insert --host $host ($uri | str join " ") + match ($uri | is-empty) { + true => { $in | mpc insert --host $host } + false => {mpc insert --host $host $uri } + } } # Adds uri to the end of current que @@ -129,7 +132,10 @@ def "main add" [ --host(-H): string # mpd host , ...uri: string # URI to add ] { let host = getHost $host - $in | mpc add --host $host ($uri | str join " ") + match ($uri | is-empty) { + true => { $in | mpc add --host $host } + false => { mpc add --host $host $uri } + } } # Direct wrapper around 'mpc crossfade'