[Enhancement]: Limit number of concurrent track downloads #1111

Closed
opened 2026-04-24 23:48:48 +02:00 by adam · 2 comments
Owner

Originally created by @wjbuys on GitHub (Jan 3, 2025).

Describe the Feature/Enhancement

Configure a sane default limit for the maximum number of audio tracks that can be downloaded for local listening at the same time. Currently, it will try to simultaneously download all files.

Why would this be helpful?

From my testing, for similarly sized audiobooks that differ only in the number of audio tracks:

  • a book with < 10 tracks downloads in seconds
  • a book with > 100 tracks downloads in minutes

I suspect that trying to juggle 100s of open download connections is overwhelming the iOS download manager, or my audiobookshelf server, or both.

Future Implementation (Screenshot)

This would probably make sense as a setting under (hamburger menu) -> Settings (gear) -> Data Settings.

Audiobookshelf App Version

iOS App - 0.9.77

Current Implementation (Screenshot)

I'm looking at an audiobook downloading right now, and it has a high double digit number in the download progress indicator which is ticking down ever so slowly. Viewing download progress shows dozens of tracks partially downloaded, and none of them making much progress.

Originally created by @wjbuys on GitHub (Jan 3, 2025). ### Describe the Feature/Enhancement Configure a sane default limit for the maximum number of audio tracks that can be downloaded for local listening at the same time. Currently, it will try to simultaneously download *all* files. ### Why would this be helpful? From my testing, for similarly sized audiobooks that differ only in the number of audio tracks: - a book with < 10 tracks downloads in seconds - a book with > 100 tracks downloads in minutes I suspect that trying to juggle 100s of open download connections is overwhelming the iOS download manager, or my audiobookshelf server, or both. ### Future Implementation (Screenshot) This would probably make sense as a setting under `(hamburger menu) -> Settings (gear) -> Data Settings`. ### Audiobookshelf App Version iOS App - 0.9.77 ### Current Implementation (Screenshot) I'm looking at an audiobook downloading right now, and it has a high double digit number in the download progress indicator which is ticking down ever so slowly. Viewing download progress shows dozens of tracks partially downloaded, and none of them making much progress.
adam added the enhancement label 2026-04-24 23:48:48 +02:00
adam closed this issue 2026-04-24 23:48:48 +02:00
Author
Owner

@wjbuys commented on GitHub (Jan 3, 2025):

Hm, actually, I think this might be a bug; looking at the code for the download scheduler, it looks like the intention was to limit to 5 concurrent downloads:

https://github.com/advplyr/audiobookshelf-app/blob/master/ios/App/App/plugins/AbsDownloader.swift#L22C15-L22C43

However, I think that we're running into the same issue as https://github.com/ReactiveX/RxSwift/issues/2538 (i.e. the tasks being submitted to the queue are themselves async and complete immediately), but I might be misreading things here. Either way, this seems like a bug rather than an enhancement then.

@wjbuys commented on GitHub (Jan 3, 2025): Hm, actually, I think this might be a bug; looking at the code for the download scheduler, it looks like the intention was to limit to 5 concurrent downloads: https://github.com/advplyr/audiobookshelf-app/blob/master/ios/App/App/plugins/AbsDownloader.swift#L22C15-L22C43 However, I think that we're running into the same issue as https://github.com/ReactiveX/RxSwift/issues/2538 (i.e. the tasks being submitted to the queue are themselves async and complete immediately), but I might be misreading things here. Either way, this seems like a bug rather than an enhancement then.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 11, 2026):

Fixed in v0.12.0-beta.

@github-actions[bot] commented on GitHub (Feb 11, 2026): Fixed in [v0.12.0-beta](https://github.com/advplyr/audiobookshelf-app/releases/tag/v0.12.0-beta).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1111