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

Issue when backing up playlists with exactly 50 songs #1

Open
pointydev opened this issue Oct 25, 2023 · 2 comments
Open

Issue when backing up playlists with exactly 50 songs #1

pointydev opened this issue Oct 25, 2023 · 2 comments
Assignees
Labels
bug Something isn't working can't reproduce This issue cannot be reproduced information requested Waiting for the author to provide additional information

Comments

@pointydev
Copy link

pointydev commented Oct 25, 2023

The script just goes into an infinite loop, I locally fixed this by adding a check to get_playlist_tracks() to make sure we aren't iterating on a redundant offset, however my code quality is trash so just making an issue:

iteration = 0
while len(results["items"]) > 0 and not (results["offset"] == 0 and iteration > 0):
    iteration += 1

Thanks,
Elliott

@khrj
Copy link
Owner

khrj commented Oct 26, 2023

Hey, I tried to save Top 50 Global and it works for me:

rendered part of diff of top-50-global.json

output of program showing top 50 global was saved

Could you get me more information on what type of playlist this occurs in? Perhaps share a sample playlist.
Thanks

@khrj khrj added bug Something isn't working can't reproduce This issue cannot be reproduced information requested Waiting for the author to provide additional information labels Oct 26, 2023
@khrj khrj self-assigned this Oct 26, 2023
@pointydev
Copy link
Author

pointydev commented Oct 26, 2023

Could you get me more information on what type of playlist this occurs in? Perhaps share a sample playlist.

Made by Spotify for me, ignore my horrible 2020 music taste. https://open.spotify.com/playlist/37i9dQZF1CAjkFUlRqDkTF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can't reproduce This issue cannot be reproduced information requested Waiting for the author to provide additional information
Projects
None yet
Development

No branches or pull requests

2 participants