Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix(download): accelerate DASH transfers via concurrent fragments and retries
Samir Hossains58b67157150d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex bb13041..8b847a6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -17,6 +17,7 @@- **Download Engine & Subprocess Diagnostics**:- Added preflight verification for `ffmpeg` alongside `yt-dlp` in `src/tui/app/download.rs`, failing fast with installation guidance when media muxing tools are missing.- Captured child process stderr lines during DASH transfers to surface concrete `yt-dlp` error diagnostics instead of bare exit codes.+ - Accelerated DASH stream downloads by passing `--concurrent-fragments 5` to `yt-dlp` with resilient retry policies (`--fragment-retries 10`, `--retries 5`, `--socket-timeout 30`) in `src/tui/app/download.rs`, overcoming per-connection CDN bandwidth throttling and preventing transient packet drops.### Changed- **Documentation & Cross-Platform Terminal Compatibility**:- Documented native Windows Terminal Sixel image support requirements (`v1.22+` via Microsoft Store) in `docs/cross-platform.md` and `README.md`, clarifying that no third-party terminal or configuration is required on Windows.diff --git a/docs/downloads.md b/docs/downloads.mdindex 7a21306..a7d96b5 100644--- a/docs/downloads.md+++ b/docs/downloads.md@@ -39,6 +39,6 @@ MovieBox DASH streams require `yt-dlp` and `ffmpeg` to download and mux adaptive- **macOS**: `brew install yt-dlp ffmpeg`- **Android (Termux)**: `pkg install yt-dlp ffmpeg`- **Linux**: Install `yt-dlp` and `ffmpeg` via system package manager.-The downloader preflights both binaries before launching the transfer, failing fast with platform-specific installation commands if either is absent. Any subprocess errors during transfer capture and display the underlying `yt-dlp` error diagnostics directly in the failure notification.+The downloader preflights both binaries before launching the transfer, failing fast with platform-specific installation commands if either is absent. Transferred fragments are pulled with `--concurrent-fragments 5` alongside resilient retry bounds (`--fragment-retries 10`, `--retries 5`, `--socket-timeout 30`) to maximize bandwidth utilization and protect against transient CDN packet drops. Any subprocess errors during transfer capture and display the underlying `yt-dlp` error diagnostics directly in the failure notification.All other providers (4KHDHub, BDIX, DhakaFlix, CircleFTP, TV mode) download directly through the internal HTTP engine.diff --git a/src/tui/app/download.rs b/src/tui/app/download.rsindex d13705b..0de7d14 100644--- a/src/tui/app/download.rs+++ b/src/tui/app/download.rs@@ -277,6 +277,14 @@ impl App {.arg(format_spec).arg("--newline").arg("--part")+ .arg("--concurrent-fragments")+ .arg("5")+ .arg("--fragment-retries")+ .arg("10")+ .arg("--retries")+ .arg("5")+ .arg("--socket-timeout")+ .arg("30").arg("-o").arg(&destination).arg("--force-overwrites")