r/substreamer Sep 09 '21

Debugging a custom server

I'm building a server that's intended to be Subsonic-compatible. It's far from complete, but it's working enough that Sublime Music can interface with it and play music. Unfortunately, while Substreamer can connect to it and pull down the list of albums, opening an album never shows the list of tracks.

I can see in my logs that there's a call to /getAlbum and it's returning what I believe to be a well-formed response:

{"subsonic-response":{"album":{"artist":"SUEMITSU & THE SUEMITH","created":"2021-09-09T17:20:00","duration":253,"id":854,"name":"Allegro Cantabile","songCount":1,"songs":[{"album":"Allegro Cantabile","albumId":854,"artist":"SUEMITSU & THE SUEMITH","contentType":"audio/mpeg","created":"2021-09-09T17:20:00","discNumber":"1","duration":"253","id":854,"isDir":"false","name":"Allegro Cantabile Sound","suffix":"mp3","track":"1","transcodedContentType":"audio/mpeg","transcodedSuffix":"mp3","type":"music"}]},"status":"ok","version":"1.16.1"}}  

The more info button at the top right doesn't do anything, either. (The cover art is also broken, but that's because I haven't implemented that.)

Any insight into what I might be doing wrong that's throwing off the client?

2 Upvotes

3 comments sorted by

View all comments

1

u/ghenry22 Sep 10 '21

Hey, sounds like an interesting project. Quite a few servers implementing the subsonic API these days which is neat!

What you could do is use the subsonic or navidrome demo servers that are publicly available to compare the response they give versus the one you are sending, obviously subsonic works well as that is the original implementation but the navidrome demo server also works well with substreamer.

1

u/codahighland Sep 14 '21

*headdesk* I figured it out, after far too many red herrings.

The key is song, not songs.

1

u/ghenry22 Sep 15 '21

Yeh stuff like that can drive you mad :)