feat: add 'Ask' quality option, language auto-select, and m4a audio remux
All checks were successful
CI / build (push) Successful in 47s

- Add 'ask' option to audio/video quality settings (stored as '' in DB)
- Auto-select when both media type AND quality are set; show filtered
  format picker when quality is Ask
- Auto-skip language picker when user has a matching language preference
- Remux audio-only downloads to m4a instead of webm for Telegram compat
- Update README to document the new flow and m4a audio output
This commit is contained in:
2026-06-28 12:17:08 +03:30
parent d0be877c0e
commit 3099244614
5 changed files with 85 additions and 12 deletions

View File

@@ -250,8 +250,10 @@ func (c *Client) StartDownload(job *domain.DownloadJob, downloadDir string) (<-c
outputPath := filepath.Join(downloadDir, job.ID+"_%(id)s.%(ext)s")
args = append(args, "--output", outputPath)
// Remux to mp4 for video output — Telegram-friendly container.
if job.MediaType != domain.MediaTypeAudio {
// Remux to Telegram-friendly containers: mp4 for video, m4a for audio-only.
if job.MediaType == domain.MediaTypeAudio {
args = append(args, "--merge-output-format", "m4a")
} else {
args = append(args, "--merge-output-format", "mp4")
}