Delete track by 'playlistindex'

eddr

Member
The 'delete' action deletes a track from a position in the playlist - Great :)

The 'getplaylist2' action lists the playlist with each tracks 'playlistindex' - Not so great if you want to find a track and delete it, as the PLAYLISTINDEX is not the playlist position.

For example, if I use getplaylist2 to get the playlist and search the results, I would like to be able to delete the track in the playlist which may have a playlistindex of 0.

Thanks!
 
There's slight inconsistency.

The index for the delete command is 1-based (so the first track has index = 1). The getplaylist2 command is 0-based, where the first track has index = 0.

It happened because getplaylist2 command was initially for our internal use, then we decided to open it in the generally available RadioBOSS edition.
 
Ok... so I get the track index from playlist2 and + 1 to get the position in the playlist ?

Can 'getplaylist' also show playlist position? :)

Thanks
 
eddr said:
Ok... so I get the track index from playlist2 and + 1 to get the position in the playlist ?
Yes.

eddr said:
Can 'getplaylist' also show playlist position? :)
The getplaylist command may be deprecated in the future, because it reads tags for all retrieved files, and this is very slow for large playlists.
 
Back
Top