Open
Conversation
Co-authored-by: NeptuneHub <171392533+NeptuneHub@users.noreply.github.com>
Co-authored-by: NeptuneHub <171392533+NeptuneHub@users.noreply.github.com>
Co-authored-by: NeptuneHub <171392533+NeptuneHub@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor plugin to use Navidrome plugin host HTTP API
Refactor HTTP calls to use host.HTTPSend
Feb 24, 2026
Owner
|
This PR will work with navidrome 0.60.4 or with the actual develop image Version: 0.60.3-SNAPSHOT (4e34d3ac). It implement a more stable way to handle the http call that is NOT supported on previous version of navidrome. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates outbound HTTP from the deprecated
pdk.NewHTTPRequest().Send()pattern tohost.HTTPSend, as recommended by Navidrome upstream following the addition of the HTTP host service in the PDK.Changes
go.mod: Bumped PDK tov0.0.0-20260224192836-652c27690be6(first version shippinghost.HTTPSend)main.go/audiomuse_api.go: Replaced allpdk.NewHTTPRequestusages withhost.HTTPSend; status checks now useresp.StatusCode(int32) and body access usesresp.Body([]byte field); network/transport errors are now surfaced as Go errors rather than swallowed into a non-200 status check.gitignore: Added compiled binary to ignore listBefore / After
Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.