fix(api): pass adaptive_workers and download_processes to dl.result

Both became required parameters of dl.result() when adaptive worker scaling
landed, but the API path calls it directly and never supplied them, so every
API-initiated download raised TypeError. Defaults match the click options.
This commit is contained in:
imSp4rky
2026-08-16 12:43:52 -06:00
parent ee9d3edfe3
commit d52d24d933
4 changed files with 16 additions and 0 deletions
+6
View File
@@ -781,6 +781,12 @@ async def download(request: web.Request) -> web.Response:
workers:
type: integer
description: Max workers/threads per track download (default - None)
adaptive_workers:
type: boolean
description: Scale per-track segment workers to measured CDN throughput, up to the workers cap (default - false)
download_processes:
type: integer
description: Split a track's segments across this many processes; only engages for large batches (default - 1)
downloads:
type: integer
description: Amount of tracks to download concurrently (default - 1)