Api getQueue, ...add parameter like api browse

Hi,
I’m currently using an ESP32 with touch screen as a “remote control/display”.
I was able to fix nearly all issues …is is surprisingly very responsive!!! … but one issue remains.

This ESP32 has a very limited amount of RAM… ( < 100Kb free with everything up and running) and when i try to retreive the playlist ( api Getqueue), the ESP32 get out of memoty. ( because of http request and/or JSON parsing and/or saving in memory)… because we retreive the full playlist Queue…

It would be nice to be able to restrict the result of “getqueue”, just by passing 2 extra paramerers ( limit and ofset) …like the browse api:
volumio.local/api/v1/browse?uri=music-library/NAS/FLAC&limit=2&offset=2.

I guess is should be very easy to implement as it is already done for “Browse”.api… :wink:

Thanks
Regards
Fabien

Hi,
I have spend some time to search in the code…
I have found in “musiclibrary.js” …
There is a comment " TODO, implement use of nEntries and nOffset for paging of result"

Unfortunately, i can’t code in javascript…
I may try to update the code directly on the raspberry, using vi… ;- :wink: :wink:

Have a nice day.