Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrainzPlayer search fixes #2838

Merged
merged 6 commits into from
Apr 16, 2024
Merged

BrainzPlayer search fixes #2838

merged 6 commits into from
Apr 16, 2024

Conversation

MonkeyDo
Copy link
Member

Rob reported a few issues with the spotify player and BP more generally.

After some debugging, we found out why some search queries find no matches despite the song being available in their catalog. Turns out we were not encoding the colons in the search query...

Second issue with spotify search API is due to the featuring artist, which can sometimes cause some issues.

Finally, show a warning toast when we are skipping a track because we found no result, as it is pretty poor UX for the user otherwise for track to be skipped without any explanation, makes it look like a bug.

encode the colon too, of course!
skip the featuring artists ("feat. XYZ", etc.) that is apparently confusing the spotify search API in some circumstances
It's poor UI to just skip however many songs without letting the user know something is happening.
Show a warning when  we tried every source with no result as we skip the track.
"track:You've Got the Love artist:Florence + the Machine" returns no results while "You've Got the Love artist:Florence + the Machine" returns results with the expected track first
See previous commit
Copy link
Member

@mayhem mayhem 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 -- thanks so much!

@MonkeyDo MonkeyDo merged commit ae07ad2 into master Apr 16, 2024
2 checks passed
@MonkeyDo MonkeyDo deleted the fix-spotify-player branch April 16, 2024 12:45
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.

2 participants