mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 00:56:16 +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,
|
ItemName: req.Name,
|
||||||
IsPresetable: true,
|
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 {
|
if err := device.Client.SelectContentItem(contentItem); err != nil {
|
||||||
app.sendError(w, err.Error(), http.StatusInternalServerError)
|
app.sendError(w, err.Error(), http.StatusInternalServerError)
|
||||||
|
|||||||
Reference in New Issue
Block a user