Skip to content

Internet Radio Search Fix#1060

Merged
SteveMicroNova merged 2 commits into
mainfrom
InternetRadioSearchFix2
Dec 1, 2025
Merged

Internet Radio Search Fix#1060
SteveMicroNova merged 2 commits into
mainfrom
InternetRadioSearchFix2

Conversation

@SteveMicroNova
Copy link
Copy Markdown
Contributor

@SteveMicroNova SteveMicroNova commented Oct 22, 2025

What does this change intend to accomplish?

The same as #1057 but good and useful

Checklist

  • Have you tested your changes and ensured they work?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • If applicable, have you updated the CHANGELOG?
  • Does your submission pass linting & tests? You can test on localhost using ./scripts/test
  • If this is a UI change, have you tested it across multiple browser platforms on both desktop and mobile?

Comment on lines +108 to +112
let servers = fetch("https://all.api.radio-browser.info/json/servers", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ name }),
}).then(r => r.json());
Copy link
Copy Markdown
Contributor Author

@SteveMicroNova SteveMicroNova Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some potential where this is a race condition but truthfully if you manage to select the textbox, type a valid search, and hit enter within .3 seconds of the dialog box opening (the average time this request takes to resolve on my computer) then that's on you

setHasError(true);
return;
}
// Check if all required fields are filled
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mixes formatting changes with code changes, making it hard to figure out what changed. Could you put the formatting changes in a separate commit next time?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide whitespace changes works around this for now.

@linknum23
Copy link
Copy Markdown
Contributor

As discussed IRL I'm wondering what the network traffic looks like when you open up the search tab and when you search. I would hope that we can optimize the load we add to to these amazing free services.

@SteveMicroNova SteveMicroNova force-pushed the InternetRadioSearchFix2 branch from 08db6bf to c18d51c Compare November 7, 2025 21:45
Comment thread web/src/components/CreateStreamModal/StreamModal/StreamModal.jsx
@SteveMicroNova SteveMicroNova force-pushed the InternetRadioSearchFix2 branch from 21cabfb to 3adf30c Compare November 26, 2025 19:07
Copy link
Copy Markdown
Contributor

@linknum23 linknum23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. NOTE that the CHANGELOG will need to be fixed up.

@SteveMicroNova SteveMicroNova merged commit 57c2fff into main Dec 1, 2025
3 checks passed
@SteveMicroNova SteveMicroNova deleted the InternetRadioSearchFix2 branch December 1, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internet radio search doesn't produce any results

2 participants