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

Generate longer anonymized playlists #5

Open
AR15senalOfCode opened this issue Apr 14, 2024 · 1 comment
Open

Generate longer anonymized playlists #5

AR15senalOfCode opened this issue Apr 14, 2024 · 1 comment

Comments

@AR15senalOfCode
Copy link

Hey there! I have noticed that if I open an playlist in a browser without being logged into spotify, it shows 80 songs in this playlist.
Anonymizing this playlist generates a playlist with only the first 30 songs of these 80 songs though.

Love this project btw.!

@jdemaeyer
Copy link
Owner

Hi @AR15senalOfCode, thanks a lot for the request and for your warm words (and apologies for the late reply)!

I would absolutely love to have more tracks in the generated anonymous playlists. Unfortunately, getting the "full" track list is not that easy, because when Spoqify makes an "anonymous" HTTP request for the playlist, the HTML returned by Spotify does indeed contain only 30 tracks. We could get the additional 50 tracks by executing the Javascript referenced in that HTML (like your browser does), but that would require either some very heavy dependencies - essentially running a full browser in our backend - or reverse-engineering Spotify's internal API. While the latter is certainly possible, it would complicate our currently very simple parsing a lot, and we would probably be getting close to the limit of what could be considered "fair use" of Spotify's data.

Still, I would absolutely love to have more songs in the generated playlists, so let's keep this ticket open :)

@jdemaeyer jdemaeyer changed the title Anonymized playlists with more than 30 songs please! Generate longer anonymized playlists Apr 25, 2024
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

No branches or pull requests

2 participants