PLS_CURRENT_SELECT_ENTRY 99999 not working.

You have a question or need an advice about how to do something? Ask it here!
Post Reply
phonic
Posts: 327
Joined: 06 Mar 2019 14:45
PLS_CURRENT_SELECT_ENTRY 99999 not working.

Post by phonic »

Hi,

I've just got around to testing this command to select the last track in the playlist added using "PLS_CURRENT_APPEND_FILE", and noticed PLS_CURRENT_SELECT_ENTRY 99999 is not selecting the entry and can only get the command working when using the real entry number like 7 not 99999.
Using 999999 results in the following error: ERROR: invalid parameter (must be int between 1 and TrackCount)

Any ideas?"
phonic
Posts: 327
Joined: 06 Mar 2019 14:45
Re: PLS_CURRENT_SELECT_ENTRY 99999 not working.

Post by phonic »

Update: As a workaround I sent an extra command called "PLS_CURRENT_TRACKCOUNT_GET" to get the number I need.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: PLS_CURRENT_SELECT_ENTRY 99999 not working.

Post by radio42 »

The macro ${cpltotalcount} should also work, e.g. PLS_CURRENT_SELECT_ENTRY ${cpltotalcount}

But I'll also a to the command the option to specify "PLS_CURRENT_SELECT_ENTRY -1" resp. "PLS_CURRENT_SELECT_ENTRY LAST" to select the last entry directly.
phonic
Posts: 327
Joined: 06 Mar 2019 14:45
Re: PLS_CURRENT_SELECT_ENTRY 99999 not working.

Post by phonic »

I've updated to "PLS_CURRENT_SELECT_ENTRY \${cpltotalcount}"
That saves an unneeded call.

Thanks!

Post Reply