[GH-ISSUE #139] [Bug Report] When using -m, albums are downloaded by song #123

Closed
opened 2026-02-27 04:57:40 +03:00 by kerem · 3 comments
Owner

Originally created by @agenbite on GitHub (Jan 4, 2026).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/139

Originally assigned to: @Googolplexed0 on GitHub.

Zotify Version
v0.11.12

Bug Description
When using -m/--album/--albums, zotify does not download each album sequentially, but rather starts downloading songs from different albums until they all are complete. This is a problem if the album list is long, because a single call to zotify might result in incomplete albums. It'd be much nicer if the albums are downloaded sequentially, not starting the next album until this one is finished.

Bug Triggering Command
zotify -m

Config File

{
    "SAVE_CREDENTIALS": "True",
    "CREDENTIALS_LOCATION": "/home/me/music/",
    "OUTPUT": "{artist} [{release_year}] {album}/{track_number}.{artist} - {song_name}",
    "ROOT_PATH": "~/music/",
    "ROOT_PODCAST_PATH": "",
    "SPLIT_ALBUM_DISCS": "False",
    "LYRICS_TO_METADATA": "False",
    "LYRICS_TO_FILE": "False",
    "MD_SAVE_GENRES": "False",
    "MD_ALLGENRES": "False",
    "MD_GENREDELIMITER": ",",
    "DOWNLOAD_FORMAT": "ogg",
    "DOWNLOAD_QUALITY": "very_high",
    "TRANSCODE_BITRATE": "auto",
    "SKIP_EXISTING": "True",
    "SKIP_PREVIOUSLY_DOWNLOADED": "False",
    "RETRY_ATTEMPTS": "2",
    "BULK_WAIT_TIME": "1",
    "CHUNK_SIZE": "20000",
    "DOWNLOAD_REAL_TIME": "False",
    "LANGUAGE": "en",
    "PRINT_SPLASH": "False",
    "PRINT_SKIPS": "True",
    "PRINT_DOWNLOAD_PROGRESS": "True",
    "PRINT_ERRORS": "True",
    "PRINT_DOWNLOADS": "True",
    "PRINT_API_ERRORS": "True",
    "PRINT_PROGRESS_INFO": "True",
    "PRINT_WARNINGS": "True",
    "TEMP_DOWNLOAD_DIR": "/tmp/",
    "OPTIMIZE_DOWNLOAD": "False"
}
Originally created by @agenbite on GitHub (Jan 4, 2026). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/139 Originally assigned to: @Googolplexed0 on GitHub. **Zotify Version** v0.11.12 **Bug Description** When using -m/--album/--albums, zotify does not download each album sequentially, but rather starts downloading songs from different albums until they all are complete. This is a problem if the album list is long, because a single call to zotify might result in incomplete albums. It'd be much nicer if the albums are downloaded sequentially, not starting the next album until this one is finished. **Bug Triggering Command** zotify -m **Config File** ``` { "SAVE_CREDENTIALS": "True", "CREDENTIALS_LOCATION": "/home/me/music/", "OUTPUT": "{artist} [{release_year}] {album}/{track_number}.{artist} - {song_name}", "ROOT_PATH": "~/music/", "ROOT_PODCAST_PATH": "", "SPLIT_ALBUM_DISCS": "False", "LYRICS_TO_METADATA": "False", "LYRICS_TO_FILE": "False", "MD_SAVE_GENRES": "False", "MD_ALLGENRES": "False", "MD_GENREDELIMITER": ",", "DOWNLOAD_FORMAT": "ogg", "DOWNLOAD_QUALITY": "very_high", "TRANSCODE_BITRATE": "auto", "SKIP_EXISTING": "True", "SKIP_PREVIOUSLY_DOWNLOADED": "False", "RETRY_ATTEMPTS": "2", "BULK_WAIT_TIME": "1", "CHUNK_SIZE": "20000", "DOWNLOAD_REAL_TIME": "False", "LANGUAGE": "en", "PRINT_SPLASH": "False", "PRINT_SKIPS": "True", "PRINT_DOWNLOAD_PROGRESS": "True", "PRINT_ERRORS": "True", "PRINT_DOWNLOADS": "True", "PRINT_API_ERRORS": "True", "PRINT_PROGRESS_INFO": "True", "PRINT_WARNINGS": "True", "TEMP_DOWNLOAD_DIR": "/tmp/", "OPTIMIZE_DOWNLOAD": "False" } ```
kerem 2026-02-27 04:57:40 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Googolplexed0 commented on GitHub (Jan 4, 2026):

It'd be much nicer if the albums are downloaded sequentially, not starting the next album until this one is finished.

"OPTIMIZE_DOWNLOAD": "False"

Downloading albums sequentially is the expected behavior when OPTIMIZED_DOWNLOADING is False. Will take a look.

<!-- gh-comment-id:3708314546 --> @Googolplexed0 commented on GitHub (Jan 4, 2026): > It'd be much nicer if the albums are downloaded sequentially, not starting the next album until this one is finished. > "OPTIMIZE_DOWNLOAD": "False" Downloading albums sequentially is the expected behavior when `OPTIMIZED_DOWNLOADING` is False. Will take a look.
Author
Owner

@Googolplexed0 commented on GitHub (Jan 4, 2026):

@agenbite I am not seeing this behavior after confirming OPTIMIZED_DOWNLOADING is disabled. I think your config misnamed OPTIMIZED_DOWNLOADING as OPTIMIZE_DOWNLOAD instead. Change that and it should work as expected.

Try updating to 0.11.13 (release in a bit) so that Progress Bars work properly and confirm that you have two on-screen (one counting albums and the other counting tracks) rather than only one (only counting total tracks across all albums).

<!-- gh-comment-id:3708361957 --> @Googolplexed0 commented on GitHub (Jan 4, 2026): @agenbite I am not seeing this behavior after confirming `OPTIMIZED_DOWNLOADING` is disabled. I think your config misnamed `OPTIMIZED_DOWNLOADING` as `OPTIMIZE_DOWNLOAD` instead. Change that and it should work as expected. Try updating to 0.11.13 (release in a bit) so that Progress Bars work properly and confirm that you have two on-screen (one counting albums and the other counting tracks) rather than only one (only counting total tracks across all albums).
Author
Owner

@agenbite commented on GitHub (Jan 5, 2026):

Progress bars look great!! Thanks!

There might be a quirk, though: I'm downloading 116 albums (actually, finishing a previous incomplete download) and the bar informs about 150, not 116 as I would expect.

<!-- gh-comment-id:3709794790 --> @agenbite commented on GitHub (Jan 5, 2026): Progress bars look great!! Thanks! There might be a quirk, though: I'm downloading 116 albums (actually, finishing a previous incomplete download) and the bar informs about 150, not 116 as I would expect.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#123
No description provided.