librespot-java icon indicating copy to clipboard operation
librespot-java copied to clipboard

Enviormental Variables always set to empty string by onTrackChanged

Open Lytjoe opened this issue 2 years ago • 1 comments
trafficstars

Describe the bug I am running a script triggered by onTrackChanged which tries to use the enviormental variables (NAME, ARTIST...) provided by this event. Unfortunately I always get the empty string. As far as I interpreted the code (I am just a beginner), this means I dont have a quee of songs, but I dont why and how to fix it. I tried it with credential, without credentials but it didn't change anything. If I try to use the onMetadataAvailable event it sets the variables fine for the first song but obviously it wont trigger again if the next song comes up.

Expected behavior The onTrackChanged event should return the metadata.

Version/Commit Download of newest version of file: librespot-player-1.6.2.jar

Lytjoe avatar Feb 01 '23 17:02 Lytjoe

That means the data is not available yet, it will show up in the Metadata Available event.

kernitus avatar Mar 20 '23 12:03 kernitus