foo_controlserver
Reply #24 –
I'm trying to write a perl script to control foobar2000/show info on playing MP3, etc from another computer.
The showing the info part is proving quite difficult since at the moment you just drop fields out of the returned line if the specific info doesn't exist in the file that's playing.
For example, you might get
111|1|14547|0.00|MP3|192|303.57|Q-Strange|Creation to ExeQtion|0|Other|15|Eternal Bliss|
from the server.
Then you listen to the next track and get:
111|1|16134|0.00|MP3|192|415.92|Squarepusher|Ultravisitor|2004|Dance|Iambic 9 Poetry|
Notice that the field where the track number should be has been completly dropped instead of just being left blank.
This makes it really difficult to write a script based on this plugins output.
If you could, it would be nice if you left in blank fields, for example, that last track should appear as:
111|1|16134|0.00|MP3|192|415.92|Squarepusher|Ultravisitor|2004|Dance||Iambic 9 Poetry|
This makes it parsable.
Thanks.
(If an option to leave these blank fields in already exists, please point it out to me, it's 3AM and i couldn't find it when I was looking).