Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
28
.bin/OLD/KAPUTT/subfzf
Executable file
28
.bin/OLD/KAPUTT/subfzf
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
subsonic() {
|
||||
subsonic-cli -c /home/sdk/.subsonic-cli.conf $@
|
||||
}
|
||||
|
||||
next=1
|
||||
offset=0
|
||||
until [ $next -eq 0 ]
|
||||
do
|
||||
_someAlbums=$(subsonic \
|
||||
-p type alphabeticalByArtist \
|
||||
-p size 500 -p offset $offset getAlbumList2 \
|
||||
| jq .albumList2.album[])
|
||||
offset=$(( offset + 500 ))
|
||||
_fullAlbums="\
|
||||
$_fullAlbums
|
||||
$_someAlbums
|
||||
"
|
||||
if [ -z "$_someAlbums" ]
|
||||
then
|
||||
next=0
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
echo $_fullAlbums | jq
|
||||
Reference in New Issue
Block a user