-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Librespot not providing artist metadata #1315
Comments
Closing this. Looks like the plugin is only for librespot-java (which also seems to be unmaintained now). |
Was looking for someone whom was suffering the same issue as me for this. It would be nice to be able to get the information itno snapcast. Is it a librespot problem at the moment then? |
Looks like the solution would be to write a stream plugin for librespot that gets metadata by using the Spotify API. I'm looking into doing this as I've written a custom stream plugin already but I've not worked with oauth stuff in python much before so that's slowing me down. It might be easier if I use a library like |
One problem I can see with this is, if you're using librespot without specifying a username (so anyone on the network can connect/play), the API won't work as you'd need a token for every user. |
The librespot output includes the spotify track ID so we can use that to get track info. The problem is that a stream plugin doesn't have access to this as it's handled by You could deal with this by having the stream be alsa/pipe/etc and have the stream plugin start a librespot instance so it's able to capture the output and query track info. This is probably my preferred approach. |
@chriscn FYI I have written a script that will play a librespot stream and provide the additional metadata for now playing tracks. I'm just doing some tidying up of the code and will then post to github after that. |
@elParaguayo perfect, I think I've seen the repo - if you'd like to talk it through at any point let me know. Would be good to get some docs written for in here (although I'm happy to help with that. |
Want to get a basic working version (configuration was hard coded for testing purposes) but would definitely appreciate some testing etc after that. |
@chriscn It's in a state where you can probably test it. Have added some basic documentation. If you have any comments, please leave them on the issues page there: https://github.com/elParaguayo/snapspot/issues |
Firstly, I love this project and am so grateful for the work you do.
Describe the bug
When playing a librespot stream and using the web interface, the artist is always "Unknown Artist".
Is this information not available from the Spotify stream?
Steps to Reproduce
Environment details
Attach logfile if applicable
Generate logs with
snapclient --logfilter debug
orsnapserver --logging.filter debug
if possible and paste them in the following codeblockThe text was updated successfully, but these errors were encountered: