Page 1 of 1

${programname} empty in OnTrackPlay event

Posted: 23 Aug 2015 14:39
by da-andy
Hi,

we're trying to us the ${programname} variable within the OnTrackPlay event to send the name of the currently scheduled and playing program via http to a logging-server but only get an empty value.

is this a bug or are we using it in a wrong way?
other variables like ${plsname} are working fine.

the EXEC_SEND_HTTP_GET command is issued via EXEC_ASYNC.

PFOA Version is 3.0.15.20.

--
andy

Re: ${programname} empty in OnTrackPlay event

Posted: 23 Aug 2015 20:07
by radio42
No, its not a bug. That macro is a scheduler macro and can only be used in the scheduler events.

In the playlist event, you might therefor use either ${progcurrentname} or ${plscurrentprogram}.

Also note, that the EXEC_ASYNC isn't really needed, as all commands are executed asynchronously from the UI.
The EXEC_ASYNC is only needed, for really long running commands to save time in case other commands might be following after...