Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
chore(deps): patch rustls, quinn-proto, webpki, and zip security advisories and sync docs
Samir Hossainsa9ad57679800
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b6de3dd..d805d54 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,9 @@- Reset legacy Android player defaults in graphical X11 and Wayland sessions so native Linux players take precedence over external Android intent dialogs.- Prioritized native Linux media player paths over foreign container fallbacks on Linux systems and preserved dynamic auto-player resolution for unconfigured sessions.- **Providers & Stream Resolution**:+ - Recovered playable signed MP4 streams via `/resource-position/v2` when MovieBox returns deprecation notice clips, querying exact seasons and episodes and reporting accurate file sizes.+ - Stripped the DASH `Referer` header on direct MP4 streams to prevent CDN HTTP 429 throttling.+ - Bumped the MovieBox stream cache schema to `v2_` to discard stale cached deprecation notices.- Filtered out unhosted MovieBox `/hls/` signed cookie targets in manifest resolution, which stops unplayable H.264 stream entries from failing with HTTP 404 during downloads or media playback.- **Download Engine & Batch Queue**:- Fixed season batch downloads by arming `is_waiting_for_download_stream` during queue steps, eliminating immediate empty-list download calls that aborted multi-episode queues.@@ -20,6 +23,7 @@### Changed- **Dependencies & Build Infrastructure**:+ - Upgraded `zip` to 9.0.5, `rustls` to 0.23.46, `quinn-proto` to 0.11.19, `rustls-webpki` to 0.103.16, and `webpki-roots` to 1.0.10, resolving RustSec security advisories.- Upgraded `sha2` to 0.11 with chunked streaming hash updates, preserving non-blocking checksum verification for release archives.- Upgraded `dirs` to 7.0, `futures` to 0.3.34, and `zip` to 8.6 across platform config paths, async tasks, and updater archive extraction.diff --git a/Cargo.lock b/Cargo.lockindex 8a38b12..5d88de3 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1478,6 +1478,18 @@ version = "1.0.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"+[[package]]+name = "nix"+version = "0.31.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d"+dependencies = [+ "bitflags",+ "cfg-if",+ "cfg_aliases",+ "libc",+]+[[package]]name = "nu-ansi-term"version = "0.50.3"@@ -1787,9 +1799,9 @@ dependencies = [[[package]]name = "quinn-proto"-version = "0.11.16"+version = "0.11.19"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560"+checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe"dependencies = ["bytes","getrandom 0.4.3",@@ -2238,9 +2250,9 @@ dependencies = [[[package]]name = "rustls"-version = "0.23.45"+version = "0.23.46"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634"+checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"dependencies = ["once_cell","ring",@@ -2262,9 +2274,9 @@ dependencies = [[[package]]name = "rustls-webpki"-version = "0.103.15"+version = "0.103.16"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"dependencies = ["ring","rustls-pki-types",@@ -3060,9 +3072,9 @@ dependencies = [[[package]]name = "webpki-roots"-version = "1.0.9"+version = "1.0.10"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"+checksum = "1c1c8e20c8a38fc7d65abfe74eb7280e4aa667e8eec8bc84996d2874810748d9"dependencies = ["rustls-pki-types",]@@ -3466,14 +3478,15 @@ dependencies = [[[package]]name = "zip"-version = "8.6.0"+version = "9.0.5"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b"+checksum = "6e04976da629d3b04204ba8105b396a193af8ad2583b2c79bfb3ab8af580a11e"dependencies = ["crc32fast","flate2","indexmap","memchr",+ "nix","typed-path","zopfli",]diff --git a/Cargo.toml b/Cargo.tomlindex 21ac2e5..4ae1162 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -58,7 +58,7 @@ reqwest = { version = "0.12.12", default-features = false, features = ["json", "sha2 = "0.11.0"flate2 = "1.0.35"tar = "0.4.44"-zip = { version = "8.6.0", default-features = false, features = ["deflate"] }+zip = { version = "9.0.5", default-features = false, features = ["deflate"] }tempfile = "3.17.1"[lib]diff --git a/docs/providers.md b/docs/providers.mdindex 4127253..b1b4463 100644--- a/docs/providers.md+++ b/docs/providers.md@@ -40,6 +40,8 @@ pub trait Provider: Send + Sync {New providers implement `Provider` (and optionally `ReleaseProvider` for multi-mirror streams), then register in `src/service.rs`. Responses are automatically cached as MessagePack envelopes.-### MovieBox CDN Manifest Resolution+### MovieBox CDN Manifest & Failover ResolutionMovieBox CDN stream entries parse signed `CloudFront-Policy` and `Edge-Cache-Cookie` tokens to find stream roots. The manifest resolver accepts only `/dash/` resources. Unhosted legacy `/hls/` cookie targets are dropped to prevent 404 failures during playback or downloads.++When upstream APIs return placeholder deprecation notices, MovieBox-TUI automatically queries the `/resource-position/v2` failover endpoint with scoped episode resolution to recover genuine signed MP4 streams, omitting the DASH Referer to prevent CDN HTTP 429 throttling.diff --git a/src/updater/extract.rs b/src/updater/extract.rsindex 4666df6..daabe65 100644--- a/src/updater/extract.rs+++ b/src/updater/extract.rs@@ -166,7 +166,7 @@ fn validate_and_set_permissions(path: &Path) -> Result<(), String> {mod tests {use super::*;use std::io::Write;- use zip::write::{FileOptions, ZipWriter};+ use zip::write::{SimpleFileOptions, ZipWriter};#[test]fn test_extract_zip_success() {@@ -176,8 +176,8 @@ mod tests {let file = File::create(&zip_path).unwrap();let mut zip = ZipWriter::new(file);- let options: FileOptions<'_, ()> =- FileOptions::default().compression_method(zip::CompressionMethod::Deflated);+ let options =+ SimpleFileOptions::default().compression_method(zip::CompressionMethod::Deflated);zip.start_file("moviebox-tui.exe", options).unwrap();zip.write_all(b"binary-content-windows").unwrap();zip.finish().unwrap();@@ -195,8 +195,8 @@ mod tests {let file = File::create(&zip_path).unwrap();let mut zip = ZipWriter::new(file);- let options: FileOptions<'_, ()> =- FileOptions::default().compression_method(zip::CompressionMethod::Deflated);+ let options =+ SimpleFileOptions::default().compression_method(zip::CompressionMethod::Deflated);zip.start_file("other.exe", options).unwrap();zip.write_all(b"other-content").unwrap();zip.finish().unwrap();