You have to rip out the Sonos stuff and get the music metadata from somewhere. If you're playing music from your phone on a bt speaker, that's going to be tricky. If you use a laptop, my guess is that would be fairly easy. I have it running on a RPi with a display, so it also shows the album art on my desk. You might need to rip that out as well, can't remember if I made it really configurable.
i shall check it out. i want to feed mine from web browser since thats where the player is on my desktop. not sure if i use desktop app to play i can catch some sort of notifications without having to involve an api, detect it some way. i think if i use vlc for already offline music, thats easier since vlc has a notification, and i can fetch that? what do you think?