mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 16:46:17 +00:00
fix(web): remove stray SourceAccount guard from RadioBrowser handler
The previous edit accidentally inserted the TUNEIN placeholder guard into HandlePlayRadioBrowser, which uses a different req struct without SourceAccount/Source fields, breaking the build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
abe9079382
commit
ca466ec2a3
@@ -1123,11 +1123,6 @@ func (app *WebApp) HandlePlayRadioBrowser(w http.ResponseWriter, r *http.Request
|
||||
ItemName: req.Name,
|
||||
IsPresetable: true,
|
||||
}
|
||||
// Only pass SourceAccount when it's a real credential, not the placeholder
|
||||
// value that speakers echo back (source name == source account, e.g. "TUNEIN").
|
||||
if req.SourceAccount != "" && req.SourceAccount != req.Source {
|
||||
contentItem.SourceAccount = req.SourceAccount
|
||||
}
|
||||
|
||||
if err := device.Client.SelectContentItem(contentItem); err != nil {
|
||||
app.sendError(w, err.Error(), http.StatusInternalServerError)
|
||||
|
||||
Reference in New Issue
Block a user