Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
docs(changelog): document stream recovery, downloader pause, and dependency bumps
Samir Hossains6a4edcededce
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ae7d37a..f8df76c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,17 @@## [Unreleased]+### Fixed+- **Providers & Stream Resolution**:+ - Extracted signed CDN MP4 streams from MovieBox subject detector links (`/subject-api/get`), restoring movie streaming and multi-resolution playback after upstream restricted play-info with deprecation clips.+ - Reported explicit error causes when MovieBox serves placeholder clips instead of generic "no streams available", and surfaced upstream HTTP failure statuses directly to the user.+- **Download Engine & Batch Queue**:+ - Recorded only flushed bytes to `.part.json` segment progress during downloads, preventing aborted or paused workers from leaving zero-byte gaps and file corruption on resume.++### Changed+- **Dependencies & Build Infrastructure**:+ - Upgraded `tokio` to 1.54.1, `scraper` to 0.29.0, `lru` to 0.19.0, `zip` to 9.1.0, `sha2` to 0.11.1, `open` to 5.4.5, `libc` to 0.2.191, and `serde_json` to 1.0.154.+## [0.1.27] - 2026-10-23### Fixeddiff --git a/src/download.rs b/src/download.rsindex f540327..03da668 100644--- a/src/download.rs+++ b/src/download.rs@@ -695,8 +695,6 @@ async fn download_segment(let bytes = chunk.len().min(remaining as usize);file.write_all(&chunk[..bytes]).await?;written += bytes as u64;- // Workers are aborted without a flush when a sibling pauses or- // fails, so resume progress must exclude bytes still buffered.segment_written.store(written - file.buffer().len() as u64, Ordering::Relaxed);unbatched_bytes += bytes as u64;if unbatched_bytes >= 512 * 1024@@ -1055,7 +1053,6 @@ mod tests {let port = listener.local_addr().unwrap().port();let url = format!("http://127.0.0.1:{port}/slow_movie.mp4");- // Serve ranges slowly so every worker still holds unflushed bytes when paused.let server_payload = Arc::clone(&payload);let server = tokio::spawn(async move {loop {diff --git a/src/providers/moviebox/adapt.rs b/src/providers/moviebox/adapt.rsindex c2077de..8fd26a8 100644--- a/src/providers/moviebox/adapt.rs+++ b/src/providers/moviebox/adapt.rs@@ -602,9 +602,6 @@ pub fn moviebox_resource_position_json_to_release(None}-/// Parses the signed CDN files that subject details list under-/// `resourceDetectors`, which still point at the real media while-/// play-info and the resource listing only return the upgrade clip.pub fn moviebox_detector_json_to_releases(details: &serde_json::Value,season: usize,@@ -627,7 +624,6 @@ pub fn moviebox_detector_json_to_releases(items.extend(list.iter().cloned());continue;}- // Some detectors carry a single file without a resolution list.let Some(download_url) = detector.get("downloadUrl").and_then(|v| v.as_str()) else {continue;};@@ -671,7 +667,6 @@ pub fn moviebox_detector_json_to_releases(}for mirror in &mut release.mirrors {mirror.direct_file = true;- // Direct MP4s reject the DASH referer with HTTP 429.mirror.headers = vec![("User-Agent".to_string(), user_agent.to_string())];}releases.push(release);@@ -679,7 +674,6 @@ pub fn moviebox_detector_json_to_releases(releases}-/// Reads the resolution from a source page link such as `.../Inception-480P-h265`.fn resolution_from_source_link(link: &str) -> Option<u64> {let upper = link.to_ascii_uppercase();let bytes = upper.as_bytes();@@ -1104,7 +1098,6 @@ mod tests {);}- // Movie detectors never answer for a series episode.assert!(moviebox_detector_json_to_releases(&details, 1, 1, "TestAgent").is_empty());assert!(moviebox_detector_json_to_releases(&json!({}), 0, 0, "TestAgent").is_empty());}