Ray,
I am currently suffering with flu and my brain is a bit muddled, however if I have understood you correctly I think that you can possibly get what you want using the following URL
http://<Brennans-IP-Address>/b2gci.fcgi?getWebInfo
which returns the following JSON
{
version: "Version BB1 Jun 15 2022 14:12:51",
tracks: "4424",
albums: "345",
artists: "90",
USBTracks: "0",
USBAlbums: "0",
USBArtists: "0",
wavs: "2",
flacs: "4",
mp3s: "4418",
aacs: "0",
capacity: "29.30",
videos: "10",
used: "17.33",
trackSpaceUsed: "169738",
albumSpaceUsed: "13052",
artistSpaceUsed: "1416",
trackSpace: "7000000",
albumSpace: "900000",
artistSpace: "200000",
maxTracks: "170000",
maxAlbums: "15000",
maxArtists: "6000"
}
The WebUI accesses the Brennan using this url with different arguments, which produce a response as JSON. So basically anything that you do with the WebUI can be done with this mechanism. Contrary to popular belief there are no webpages generated on the Brennan, it is all JavaScript running in the browser using this mechanism to access the relevant data.
The attached python file is some test code that demonstrate a few things using this interface.
Hope this is of some use.
Andrew.