Automatically insert a file before a track in the playlist.
Posted: 07 Feb 2023 17:53
I some cases would like to automatically insert an mp3 before a song in the playlist. For example, if the next song is by Dua Lipa, I want to automatically insert an mp3 with information about the latest song by Dua Lipa before that song.
I think I can do that in the following way.
ProppFrexx sends the events ${plstrackartistnext} and ${plstracktitlenext}
If the song matches the criteria:
Get the index of the next track
PLS_CURRENT_TRACKNEXT_GET
Append the file
PLS_CURRENT_APPEND_FILE
Select the file
PLS_CURRENT_SELECT_ENTRY ${cpltotalcount}
Move the file to index of the next track -1
PLS_CURRENT_MOVE_TO
Is this the best way to do it, or is there a better way?
Thanks in advance for the info.
I think I can do that in the following way.
ProppFrexx sends the events ${plstrackartistnext} and ${plstracktitlenext}
If the song matches the criteria:
Get the index of the next track
PLS_CURRENT_TRACKNEXT_GET
Append the file
PLS_CURRENT_APPEND_FILE
Select the file
PLS_CURRENT_SELECT_ENTRY ${cpltotalcount}
Move the file to index of the next track -1
PLS_CURRENT_MOVE_TO
Is this the best way to do it, or is there a better way?
Thanks in advance for the info.