Write a playlist file

You have a question or need an advice about how to do something? Ask it here!
Post Reply
User avatar
Quentin D
Posts: 76
Joined: 20 Aug 2015 13:18
Write a playlist file

Post by Quentin D »

Hi Bernd,
I'm trying to write playlists files, using the event Playlist > OnTrackPlay :

Code: Select all

EXEC_WRITE_FILE Z:\www\radio\playlists\${yyyy}-${MM}-${dd}.txt|au|${HH}:${mm} ${trackname}${CRLF}
The problem is the ${CRLF} macro doesn't seems considered, because the output file only contains one line. Is there something I missed?

Thanks,
Quentin
User avatar
radio42
Site Admin
Posts: 6538
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Write a playlist file

Post by radio42 »

I just tested it and I cannot reproduce your issue!
Here, the ${CRLF} is evaluated and all is working as expected.

To test it, I was using the following command:

Code: Select all

EXEC_WRITE_FILE C:\Temp\text.txt|au|Line${CRLF}
The 1st time when I called this control-command it gave me this:
1stCall.jpg
The 2nd time when I called this control-command it gave me this:
2ndCall.jpg
The 5th time when I called this control-command it gave me this:
5thCall.jpg
As you can see, all as expected... I am not sure how you are testing things?!
User avatar
Quentin D
Posts: 76
Joined: 20 Aug 2015 13:18
Re: Write a playlist file

Post by Quentin D »

It is strange, using the "Test" button, it doesn't work.
It is working since I clicked on the OK button of the "Settings & Options" window ;)
User avatar
radio42
Site Admin
Posts: 6538
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Write a playlist file

Post by radio42 »

No, as the test button does not resolve macros - it even tells you, when you click it ;-)
You can assign the command to one of the 50 User buttons to test it - or test it with a real playlist...
User avatar
Quentin D
Posts: 76
Joined: 20 Aug 2015 13:18
Re: Write a playlist file

Post by Quentin D »

Oh ok, I didn't think that was all macros :D
Thanks for the tip!

Post Reply