nushell: Ranges are inclusive
This commit is contained in:
parent
014bab378e
commit
7bc21ac933
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ 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))
|
let streamIndex = (random integer ..(($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
|
||||||
|
|
Loading…
Reference in a new issue