From ca466ec2a3c2ea2fdf2dfefec7a9bb4f253bbff2 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sat, 23 May 2026 14:52:16 +0200 Subject: [PATCH] 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 --- pkg/service/soundtouchweb/handler.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/service/soundtouchweb/handler.go b/pkg/service/soundtouchweb/handler.go index 265af40..b3510b1 100644 --- a/pkg/service/soundtouchweb/handler.go +++ b/pkg/service/soundtouchweb/handler.go @@ -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)