how to change song title format automatically?

You have a question or need an advice about how to do something? Ask it here!
Post Reply
verbun
Posts: 3
Joined: 22 Mar 2018 09:12
how to change song title format automatically?

Post by verbun »

Hi gays. I'm wondering, is it possible to change song title format via control command builder? The idea is to change song title format before prerecorded show will start.

I tried to do it with this command:

Action: STREAMING_SETSONGTITLEFORMAT

Parameter: <songtitleformat>[|<«Vampire - The Masquerade - Bloodline» | >]${artist} - ${title}

But, unfortunatley, no good.
verbun
Posts: 3
Joined: 22 Mar 2018 09:12
Re: how to change song title format automatically?

Post by verbun »

Thank's for yore help. But, unfortunately, it doesn't work correctly. and when I'm testing this command in control command builder suddenly appears the message:

"The control parameter contains macros. The macros might not be replaced with effective data as during a real mapping execution. The macros will therefore be replaced by default values, wwhich might result in impropper command execution."

my command looks like this:

STREAMING_SETSONGTITLEFORMAT Vampire - The Masquerade - Bloodline | ${artist} - ${title}
Maybe I'm doing something wrong?
User avatar
radio42
Site Admin
Posts: 8329
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: how to change song title format automatically?

Post by radio42 »

Yes, that message appears when you click the 'Test' button, which is normal, as macros cannot be resolved when clicking the 'Test' button, which is obvious.
As said, your command syntax is wrong!
The parameter structure is like this: <songtitleformat>[|<servername>]
And the help says:
songtitleformat: the song title format to use (if empty the default format will be used);
servername: the name of the streaming server to set the format for (if missing the default format will be set)

So as explained above examples might be:

Code: Select all

STREAMING_SETSONGTITLEFORMAT ${artist} - ${title}
or

Code: Select all

STREAMING_SETSONGTITLEFORMAT ${artist} - ${title}|MyStreamingServer
(where MyStreamingServer denotes the name of one of your defined streaming server names, see general settings, seciton 'Streaming';
also note, that there is NO space between the parameter separator symbol '|')
The 1st command will change the default song title update format to ${artist} - ${title} for all servers as a default.
Whereas the 2nd command will only change the song title update format for the server with the name MyStreamingServer.
verbun
Posts: 3
Joined: 22 Mar 2018 09:12
Re: how to change song title format automatically?

Post by verbun »

Now it works! Thank's a lot.
User avatar
radio42
Site Admin
Posts: 8329
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: how to change song title format automatically?

Post by radio42 »

Yes, the STREAMING_SETSONGTITLEFORMAT is exactly the right command to use.

But note, that the brackets are just given as indicators in the description to let you know what is a parameter (in angle brackets) resp. and optional parameter (in square brackets).
However, these brackets MUST be removed in the real command.
E.g. you command should look like this:

Code: Select all

STREAMING_SETSONGTITLEFORMAT ${artist} - ${title}

Post Reply