Skip to content

feat(omnibox): allow choosing download mode for batch downloads#182

Open
Crayz129 wants to merge 1 commit into
tonhowtf:mainfrom
Crayz129:feat/batch-download-mode-selector
Open

feat(omnibox): allow choosing download mode for batch downloads#182
Crayz129 wants to merge 1 commit into
tonhowtf:mainfrom
Crayz129:feat/batch-download-mode-selector

Conversation

@Crayz129

@Crayz129 Crayz129 commented Jul 18, 2026

Copy link
Copy Markdown

Problem

When pasting multiple URLs, the batch download UI only shows "Download all" — there's no way to choose the download mode. So batch downloads always use whatever downloadMode happens to be set, and you can't force "Audio only". This is especially noticeable with YouTube Music links (music.youtube.com), which are detected as regular YouTube videos: in single-download you can pick "Audio Only (MP3)", but in batch you can't.

Fix

The batch flow already forwards downloadMode to the backend (handleBatchDownload) — only the UI to choose it was missing. This renders the existing DownloadModeSelector (Auto / Audio Only / No Sound) above the "Download all" button in the batch state, bound to the same downloadMode state. DownloadModeSelector's onChange prop is made optional, since the batch usage has no format selection to reset.

Demonstration

batch-mode

Notes

  • No backend changes.
  • pnpm check passes (0 errors). No Rust files touched.
  • Selected mode applies to every URL in the batch.

The batch download flow already forwarded `downloadMode` to the backend,
but the mode selector was only rendered in the single-download state, so
users could not pick "Audio only" (or "No sound") when pasting multiple
URLs. This is especially noticeable with YouTube Music links, which are
detected as regular YouTube videos.

Render the existing DownloadModeSelector above "Download all" in the
batch state, bound to the same `downloadMode` state that
`handleBatchDownload` already reads. Also make DownloadModeSelector's
`onChange` prop optional, since the batch usage has no format selection
to reset.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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