(01-24-2024, 02:36 AM)Nutul Wrote: So, as I said, once you install all that stuff (and it is all for front-end as I can see) and the engine has done its work parsing the open-spotify page, you are presented with that object, from which you can take the album art and artist/track info (no sign of the album, BTW)
I tried to do the same, and TTYTT I was able to locate Artist, track title and album art - no trace of the album.
Can be retrieved by a further parsing of another spotify ID (the album Id, which is in the previous data...)
There is only a small problem: in order to get all that information we need the Spotify track ID, which only your phone and spotify-connect know...
Not really a problem. The track ID is easily found right in the librespot log. For example:
Code:
2024-01-24T15:37:33Z INFO librespot_playback::player] Loading <Sea Song> with Spotify URI <spotify:track:3EBcLC4ZM3iGFxJWsaKhdF>
So, parse the librespot log file for the latest "<spotify:track:XXXXXXXXXXXXXXXXXX>" entry, grab the track ID, inject it into the spotify-url-info tool, grab metadata and cover art, display in overlay.
I would love to be able to write the code to make this work. It would be fun!