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

Genre selection dropdown menu and adequate response in song retrieval #12

Merged
merged 4 commits into from
Dec 7, 2022

Conversation

eniteCZ
Copy link
Collaborator

@eniteCZ eniteCZ commented Dec 7, 2022

This is a commit for lab 11:
I got rid of the old song retrieval function with nested async loops
Instead, I split it up:

  • First, we get genres and let the user choose one.
  • Then when the user selects we load a playlist from that genre and get about 40 of its songs.
  • When the user hits the "Broaden my horizon" button we take 9 random songs from the 40 loaded before and show him the visualization.

What changed is just the stuff that happens before clicking the submit button. You still get the same array of 9 songs afterward for your visualization.

@eniteCZ eniteCZ merged commit 07104f0 into main Dec 7, 2022
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.

1 participant