Update 2023-11-04 10:58 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2023-11-04 10:58:13 +01:00
parent a8256e307f
commit cd7fa30038
5 changed files with 43 additions and 24 deletions

View File

@@ -9,7 +9,7 @@ subsonic-play() {
do
echo $song > /tmp/.playing
subsonic-cli stream -p id $song \
| mpv --loop=no -
| mpv --loop=no - || exit 0
done
}
@@ -77,5 +77,21 @@ subsonic-download() {
subsonic-cli download -p id $1 | pv > "$HOME/subsonic-download/$NAME.zip"
}
subsonic-$1
if [ -z $1 ]
then
cat <<"EOF"
usage: subsonic <command> <args>
play <song id> - play song with id
download <album id> - download album with id
[un]star - [un]star currently playing song
search <term> - show song/album for term
favorites - play starred songs
random - play random songs
EOF
else
subsonic-$1 $2
fi