Excellent, thanks for this! Initially it didn't work as I was calling cURL from a batch file and to get literal % you have to use it twice, so if you are using cURL in a batch file it would be:
http://localhost:9000/?action=inserttrack&filename=http://127.0.0.1:8000/listen.pls%%3Fsid=1%%20%%23999&pos=1
Unfortunately, even with the duration now specified it is not having the desired effect - if I close down the SHOUTcast server (running on 127.0.0.1) RadioBOSS does not keep retrying to connect and moves on to the next track. The following error is displayed in the log:
Stream connection lost/unstable: reconnecting
Unable to play! Error code 41 (unsupported file format).
The same error happens (Unable to play! Error code 41 (unsupported file format).) if the SHOUTCast servers source is disconnected for a brief moment (which can happen sometimes) and this as well, causes RadioBOSS to go on to the next track which is not what we want!
With regards to point 3 (track title) - I don't think this is happening and I can easily reproduce it, here's how I can:
1) Stopped broadcasting in RadioBOSS and also stop playing any tracks. Ensured RadioBOSS will not start playing any tracks when it is re-started.
2) Restarted the SHOUTCast server to clear any metadata just in case
3) Opened RadioBOSS (No tracks playing). Started broadcasting - no track information is sent.
4) Waited a few minutes - still nothing (Periodic is set to 30 seconds).
5) Started playing a track in RadioBOSS - now the static text defined for metadata track title is sent.
Thanks for confirming the behaviour of point 4.
I have noticed that API commands next track and delete track don't get logged to the API output window but play does? Is it a bug that they are not logged?
Also a small feature request: There is no Date column for the output log - it's hard to keep track of what has happened when if scrolling through the log. Would it be possible to make it auto scroll as well?
Thanks