${programname} empty in OnTrackPlay event

You have a question or need an advice about how to do something? Ask it here!
Post Reply
da-andy
Posts: 4
Joined: 08 Aug 2013 17:41
${programname} empty in OnTrackPlay event

Post 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
User avatar
radio42
Site Admin
Posts: 9108
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: ${programname} empty in OnTrackPlay event

Post 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...

Post Reply