Re: CLI command : number of Favorite
mherger <mherger.ag9ehz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Tue, 22 Feb 2022 17:47:29 +0000
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
Asking for one item should only give you one item back:
Code:
--------------------
% curl -sX POST -d '{"id":0,"params":["",["favorites", "items", 0, 1]],"method":"slim.request"}' http://musicpi.local:9000/jsonrpc.js | jq .
{
"result": {
"count": 14,
"loop_loop": [
{
"id": "8ee3b9b5.0",
"name": "SRF3",
"type": "audio",
"image": "....../image.png",
"isaudio": 1,
"hasitems": 0
}
],
"title": "Favoriten"
},
"id": 0,
"method": "slim.request",
"params": [
"",
[
"favorites",
"items",
"0",
"1"
]
]
}
--------------------
Despite the "count" of 14.
Michael
"It doesn't work - what shall I do?" - "Please check your server.log
and/or scanner.log file!"
(LMS: Settings/Information)
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=116012