Skip to content

feat: add parallel batch download API (fixes #3)#14

Open
nandanosql wants to merge 1 commit intoaverygan:mainfrom
nandanosql:feat/batch-download
Open

feat: add parallel batch download API (fixes #3)#14
nandanosql wants to merge 1 commit intoaverygan:mainfrom
nandanosql:feat/batch-download

Conversation

@nandanosql
Copy link
Copy Markdown

Summary

Addresses issue #3 - batch download support.

Changes

  • New /api/batch/download and /api/batch/status endpoints
  • Parallel downloads with ThreadPoolExecutor (3 concurrent workers)
  • Max 20 URLs per batch
  • Frontend Download All uses batch API with fallback

Closes #3

- Add POST /api/batch/download endpoint accepting multiple URLs
- Add GET /api/batch/status/<batch_id> for batch progress tracking
- Use ThreadPoolExecutor with 3 concurrent workers for parallel downloads
- Limit batch to 20 URLs per request
- Update frontend 'Download All' to use batch API instead of sequential
- Fallback to sequential download if batch API fails
- Batch status shows done/errors/pending counts

Fixes #3
DeBondor added a commit to DeBondor/reclip that referenced this pull request Apr 11, 2026
…an#14 — cookies, playlist, AAC, GIF, batch download

- averygan#25: cookies.txt support (COOKIES_FILE auto-detected, passed to all yt-dlp calls)
- averygan#28: YouTube playlist expansion via /api/playlist endpoint (flat-playlist -J)
- averygan#29: Force AAC audio codec (-S acodec:aac) for all video/audio downloads
- averygan#20: GIF export via ffmpeg 2-pass palettegen/paletteuse, 15fps, max 480px width
- averygan#14: Batch download via /api/batch/download + /api/batch/status, ThreadPoolExecutor(3), parallel Download All
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant