@oblikoamorale Before I actually spend the dev effort to code up a pull request, would you have any objections to being able to return discart for the current playing track in addition to albumart? Seems relatively straightforward, but also a decent amount of work.
Discart PR is finally done and up. This was a slightly bigger pain than I thought it would be.
I'm guessing @regor will appreciate this one.
Will take a look at it
No luck contacting the developer... so I have installed the alternate component, enabled full logging and manually sent commands to the server and logged the response.
/foobar2000controller/?cmd=Version¶m3=NoResponse
{"versionName":"0.97.14-fb2kc", "versionCode":"1"}
/foobar2000controller/?cmd=GetQueue¶m3=NoResponse
[
{"pi":"0","pl":"1","qi":"0","t":"Strange","a":"4 Non Blondes","al":"Spaceman","l":"4:08","r":"?"},
{"pi":"1","pl":"1","qi":"1","t":"What's up? (remix)","a":"4 Non Blondes","al":"Spaceman","l":"4:52","r":"?"}
]
Queue: track 1|Track 2
Track 01
Artist Name : 4 Non Blondes
Track Title : values» Strange
Album Title : Spaceman
Duration : 4:07.707 (10 923 864 samples)
Track 2
Artist Name : 4 Non Blondes
Track Title : What's up? (remix)
Album Title : Spaceman
Duration : 4:51.893 (12 872 496 samples)
When a track is enqueued from library (and no playlist is involved):
"pi":"4294967295","pl":"4294967295"
Equal to 2^32 − 1; i.e. the highest unsigned 32-bit integer.
pi -> track index at playlist (zero based) i.e. position
qi -> queue index (zero based)
pl -> playlist index (zero based)
t -> title
a -> artist
al -> album
l -> length (h:mm:ss)
r -> rating
That suffice to create the commands with the same output I think.