From 2d9491e063d09b456ba2267609897b12d377a89e Mon Sep 17 00:00:00 2001 From: splitsec2 <35583321+splitsec2@users.noreply.github.com> Date: Thu, 22 Oct 2026 18:20:56 -0600 Subject: [PATCH] docs(settings): say that the per-source limit replaces Max Concurrent Downloads (#1542) With Max Concurrent Downloads Per Source above 0 the download pool is sized per source and a task is admitted when its own source is below the limit. Max Concurrent Downloads isn't read at all in that mode, so 3 per source across 3 busy sources runs 9 at once. Neither description said so. The per-source text now says it replaces the global limit and what the total can be, and the global one says it isn't used while the per-source limit is set. Text only, no behaviour change. I changed the two rows in `docs/environment-variables.md` by hand. Running `scripts/generate_env_docs.py` on main today also drops the `SHELFMARK_API_KEY_READONLY` entries and changes the slskd anchor, so the file looks hand-edited since it was last generated, and I didn't want to fold that into this. The two rows match what the generator produces for them. Found in a Claude pass over 1.5.0. --- docs/environment-variables.md | 8 ++++---- shelfmark/config/settings.py | 9 +++++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/environment-variables.md b/docs/environment-variables.md index f9ceed48..d403e289 100644 --- a/docs/environment-variables.md +++ b/docs/environment-variables.md @@ -549,8 +549,8 @@ Audiobooks only. AudiobookBay lists it for most releases. In Prowlarr results it | `HARDLINK_TORRENTS_AUDIOBOOK` | Create hardlinks instead of copying. Preserves seeding but archives won't be extracted. Don't use if destination is a library ingest folder. | boolean | `true` | | `AUTO_OPEN_DOWNLOADS_SIDEBAR` | Automatically open the downloads sidebar when a new download is queued. | boolean | `false` | | `DOWNLOAD_TO_BROWSER_CONTENT_TYPES` | Automatically download completed files to your browser for the selected content types. | string (comma-separated) | _empty list_ | -| `MAX_CONCURRENT_DOWNLOADS` | Maximum number of simultaneous downloads. | number | `3` | -| `MAX_CONCURRENT_DOWNLOADS_PER_SOURCE` | Simultaneous downloads allowed from each source (Soulseek, AudiobookBay, Direct Download and so on). A source at its limit does not hold the others back, so a Soulseek download waiting in a peer's queue cannot stop a torrent from starting. 0 uses the single limit above for all sources together. | number | `0` | +| `MAX_CONCURRENT_DOWNLOADS` | Maximum number of simultaneous downloads. Not used while Max Concurrent Downloads Per Source is above 0. | number | `3` | +| `MAX_CONCURRENT_DOWNLOADS_PER_SOURCE` | Simultaneous downloads allowed from each source (Soulseek, AudiobookBay, Direct Download and so on). A source at its limit does not hold the others back, so a Soulseek download waiting in a peer's queue cannot stop a torrent from starting. Above 0 this replaces Max Concurrent Downloads: the total can be this number for every source that has downloads at once. 0 uses the single limit above for all sources together. | number | `0` | | `STATUS_TIMEOUT` | How long to keep completed/failed downloads in the queue display. | number | `3600` |
@@ -854,7 +854,7 @@ Automatically download completed files to your browser for the selected content **Max Concurrent Downloads** -Maximum number of simultaneous downloads. +Maximum number of simultaneous downloads. Not used while Max Concurrent Downloads Per Source is above 0. - **Type:** number - **Default:** `3` @@ -865,7 +865,7 @@ Maximum number of simultaneous downloads. **Max Concurrent Downloads Per Source** -Simultaneous downloads allowed from each source (Soulseek, AudiobookBay, Direct Download and so on). A source at its limit does not hold the others back, so a Soulseek download waiting in a peer's queue cannot stop a torrent from starting. 0 uses the single limit above for all sources together. +Simultaneous downloads allowed from each source (Soulseek, AudiobookBay, Direct Download and so on). A source at its limit does not hold the others back, so a Soulseek download waiting in a peer's queue cannot stop a torrent from starting. Above 0 this replaces Max Concurrent Downloads: the total can be this number for every source that has downloads at once. 0 uses the single limit above for all sources together. - **Type:** number - **Default:** `0` diff --git a/shelfmark/config/settings.py b/shelfmark/config/settings.py index c95f7030..81119d2c 100644 --- a/shelfmark/config/settings.py +++ b/shelfmark/config/settings.py @@ -1486,7 +1486,10 @@ def download_settings() -> list[SettingsField]: NumberField( key="MAX_CONCURRENT_DOWNLOADS", label="Max Concurrent Downloads", - description="Maximum number of simultaneous downloads.", + description=( + "Maximum number of simultaneous downloads. Not used while Max Concurrent " + "Downloads Per Source is above 0." + ), default=3, min_value=1, max_value=10, @@ -1499,7 +1502,9 @@ def download_settings() -> list[SettingsField]: "Simultaneous downloads allowed from each source (Soulseek, AudiobookBay, " "Direct Download and so on). A source at its limit does not hold the others " "back, so a Soulseek download waiting in a peer's queue cannot stop a torrent " - "from starting. 0 uses the single limit above for all sources together." + "from starting. Above 0 this replaces Max Concurrent Downloads: the total can " + "be this number for every source that has downloads at once. " + "0 uses the single limit above for all sources together." ), default=0, min_value=0,