How to get current playing filename in playlist?

You have a question or need an advice about how to do something? Ask it here!
Post Reply
Thijmen
Posts: 100
Joined: 16 Jul 2019 20:19
How to get current playing filename in playlist?

Post by Thijmen »

Hi there,

I am trying to create an event for, for example OnUser1.

When pressed, I hoped it would do this:

Code: Select all

EXEC_TAG_FILE ${filenameandpath}|rating=20
PLS_CURRENT_PLAY_NEXT
But it appears that ${filenameandpath} is only for playlist events.
Is there a way to achieve what I want?
Thijmen
Posts: 100
Joined: 16 Jul 2019 20:19
Re: How to get current playing filename in playlist?

Post by Thijmen »

Perhaps a

Code: Select all

${cpltrackfilenameandpathcurrent}
can be implemented?
User avatar
radio42
Site Admin
Posts: 8926
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: How to get current playing filename in playlist?

Post by radio42 »

Sure. That might be added to the next release.
Thijmen
Posts: 100
Joined: 16 Jul 2019 20:19
Re: How to get current playing filename in playlist?

Post by Thijmen »

That would be great, looking forward to the release! :D
Thijmen
Posts: 100
Joined: 16 Jul 2019 20:19
Re: How to get current playing filename in playlist?

Post by Thijmen »

I currently worked around this by setting a EXEC_VAR_SET in OnTrackPlay, with the current filename and I fetch it in my command with ${VAR:variable}, but having this natively in Proppfrexx would be great!
User avatar
radio42
Site Admin
Posts: 8926
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: How to get current playing filename in playlist?

Post by radio42 »

The macros ${cpltrackfilenameandpathcurrent} and ${cpltrackfilenameandpathnext} have been added to the new v4.5.2.0.
Thijmen
Posts: 100
Joined: 16 Jul 2019 20:19
Re: How to get current playing filename in playlist?

Post by Thijmen »

Awesome, thanks Bernd!

Post Reply