Interesting fuckup
This commit is contained in:
parent
2a0a46a042
commit
7677856d0a
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue