-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hey! Maybe issues isn't the best way to reach out about this but I wanted to see if you'd be willing to extract the Jellyfin API code out of this project into its own Go module/repo? I have a GUI music player project also using Go (https://github.com/dweymouth/supersonic) that currently supports only Subsonic but I would like to add Jellyfin support as well. I did some searching around and this project is the closes thing I've found so far to a Go API client library for Jellyfin.
Side note - I took a quick peek at the code and I think you're forgetting to call Close on the response bodies in at least some of the cases, meaning the connection won't be able to be reused with keep-alive and could lead to a slow resource leak (just recently fixed the same issue in my project).
I'm also willing to start the library myself, copying out the relevant code and adapting it as necessary (and of course I'll give you credit for being the primary author!). If you then wanted to share the Jellyfin backend you might need a small shim on top of it (since we each have our own slightly different API-generic models so I'd make the extracted Jellyfin library more closely match Jellyfin's underlying object model.