Update kink script for nushell 0.86
This commit is contained in:
parent
d1bcd86fc6
commit
ab2a3202b2
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ export def main [channel?: string] {
|
||||||
})
|
})
|
||||||
let playlist = ($playlist.playlist | transpose | where {|x| ($x.column0 | str starts-with "File") } | get column1)
|
let playlist = ($playlist.playlist | transpose | where {|x| ($x.column0 | str starts-with "File") } | get column1)
|
||||||
mpc clear
|
mpc clear
|
||||||
let streamIndex = (random integer ..(($playlist | length) - 1))
|
let streamIndex = (random int ..(($playlist | length) - 1))
|
||||||
echo $"Playing stream ($streamIndex)"
|
echo $"Playing stream ($streamIndex)"
|
||||||
let stream = ($playlist | get $streamIndex)
|
let stream = ($playlist | get $streamIndex)
|
||||||
mpc add $stream
|
mpc add $stream
|
||||||
mpc play
|
mpc play
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue