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

ValueError: range() arg 3 must not be zero #30

Open
okjuan opened this issue Nov 16, 2021 · 0 comments
Open

ValueError: range() arg 3 must not be zero #30

okjuan opened this issue Nov 16, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@okjuan
Copy link
Owner

okjuan commented Nov 16, 2021

> What d'ya wanna do? Pick an option:
	---
	Create a playlist:
	'a' - from an artist's discography
	'b' - from a playlist full of albums.
	'c' - (interactive) from albums in your library that have matching genres.
	---
	Update a playlist:
	'd' - Add tracks to my playlist from my saved albums with similar genres
	---
	'q' - quit
a

> What artist interests you?
Amy Mann
I found: Amy Manny, with genres [], with popularity 0
Traceback (most recent call last):
  File "app/music_lib_bot.py", line 285, in <module>
    main()
  File "app/music_lib_bot.py", line 281, in main
    MusicLibBot(spotify_client_wrapper, my_music_lib, music_util, ui).run()
  File "app/music_lib_bot.py", line 273, in run
    functions[selection]()
  File "app/music_lib_bot.py", line 156, in callback
    self.playlist_creator.create_playlist_from_an_artists_discography(
  File "./app/playlist_creator.py", line 46, in create_playlist_from_an_artists_discography
    albums = self._get_discography(get_artist)
  File "./app/playlist_creator.py", line 38, in _get_discography
    albums = self.music_util.get_discography(artist)
  File "./app/lib/music_util.py", line 208, in get_discography
    return self.spotify_client_wrapper.get_artist_albums(artist.id)
  File "./app/lib/spotify_client_wrapper.py", line 77, in get_artist_albums
    return self.get_albums(
  File "./app/lib/spotify_client_wrapper.py", line 122, in get_albums
    albums = self._fetch_in_batches(album_ids, album_fetcher)
  File "./app/lib/spotify_client_wrapper.py", line 131, in _fetch_in_batches
    for batch_start_index in range(0, len(item_ids), batch_size):
ValueError: range() arg 3 must not be zero
@okjuan okjuan added the bug Something isn't working label Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant