added recommendations api + minor bug fix - #37
Open
s9swata wants to merge 10 commits into
Open
Conversation
Itz-Agasta
reviewed
Mar 20, 2025
| def get_artist_albums(artist_name): | ||
| """Fetch all albums of a given artist.""" | ||
|
|
||
| CLIENT_ID = "e904c35efb014b76bd8999a211e9b1e1" |
Owner
There was a problem hiding this comment.
broooo don't pass keys like this and pushed it.
Contributor
Author
There was a problem hiding this comment.
okay will access it from env then
| playlist_file = playlist_dir / f"{playlist_name}.json" | ||
| playlist_dir.mkdir(parents=True, exist_ok=True) | ||
| open(playlist_file, "w").close() | ||
|
|
Owner
There was a problem hiding this comment.
ok but how much effective is this recommendation methos?
Contributor
Author
There was a problem hiding this comment.
this is not the reccomendation code tho, but let me explain the recommendation system - We search for the albums of the current artist, then choose an album randomly, then add the songs to the current queue. In case of 2 or more artists, the artist name is chosen randomly too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added recommendations api that autoplays songs and fixed minor bugs