Page 1 of 1

Server : File with list of tracks

Posted: Sat Feb 11, 2017 7:48 pm
by MxWayGamer
Hi !

All is in the title, how i can know what track is on my server with external script ?

Re: Server : File with list of tracks

Posted: Sun Feb 12, 2017 8:27 am
by Wahlamt
There's not a file or command that can really do this for you. A shot in the dark would be: Have an array of the tracks on your server, then have a database column with "last track" which you get from the result file, compare those to and assume the next one in the order of the array is the one that's currently playing.

Re: Server : File with list of tracks

Posted: Sun Feb 12, 2017 3:24 pm
by MxWayGamer
That's what I though but it's not very practical if I would like to add track or remove... JLV can you add - - track-file? :)

Re: Server : File with list of tracks

Posted: Mon Feb 13, 2017 3:21 am
by jlv
I could, but I don't see how it's any better than tracking it in your script. Just do something like this:

echo -n "x/xyzzy/addtrack 0 5 60 mytrack.trackinfo" >/dev/udp/127.0.0.1/19800
echo >>tracklist mytrack.trackinfo

Re: Server : File with list of tracks

Posted: Mon Feb 13, 2017 2:16 pm
by MxWayGamer
If I add track with script i'm totaly agree with you but if other administrators add track with command "server,addtrack" on the server. This track will not in my file. It's the same with remove command.

Re: Server : File with list of tracks

Posted: Tue Feb 14, 2017 4:02 am
by jlv
You could use --extension to make alternative commands to add and remove tracks. Admins could still muck up the track list if they wanted though.