Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix(details): resolve stream table source from mirror labels before provider fallback
Samir Hossains3b2762f76e7f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 048d31d..9f6ea92 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -51,6 +51,8 @@- Dimmed unselected list items across Audio dubs, Seasons, Episodes, and Search Results to `theme.muted`, eliminating bright white text bleeds in the background.- Dimmed background footer shortcuts and download bar elements during open dialogs, ensuring visual focus remains strictly on the active foreground popup.- Suppressed terminal graphics protocol rendering for background posters when a modal dialog is open, preventing image pixels from bleeding over foreground confirmation dialogs.+- **Stream Table Source Column Resolution**:+ - Prioritized specific mirror and uploader labels (`file.source_label()`) in the stream table `SOURCE` column before falling back to generic provider names, displaying actual source tags (`Pahe.in`, `PSA`, `NF`, `GalaxyRG`, etc.) when present while retaining provider fallbacks for direct CDN streams.- **MovieBox DASH Progress Normalization, Throttling & Background Continuity**:- Normalized multi-stream MPEG-DASH download percentages across video (0–90%), audio (90–98%), and merger (99–100%) stages, eliminating progress resets back to 0% when the video stream finishes and the audio stream begins.- Enforced monotonic progress tracking and throttled progress event emissions to 250ms intervals, eliminating terminal text jitter and channel saturation.diff --git a/src/tui/screens/details.rs b/src/tui/screens/details.rsindex dc2bce8..73510c8 100644--- a/src/tui/screens/details.rs+++ b/src/tui/screens/details.rs@@ -1120,22 +1120,22 @@ pub fn draw(frame: &mut Frame, area: Rect, state: &mut AppState, theme: &Theme)};let release_title = clean_stream_release_title(&file.filename);- let upload_by = match file.provider {- crate::providers::models::ProviderKind::MovieBox => "MovieBox CDN".to_string(),- crate::providers::models::ProviderKind::FourKHdHub => "4KHDHub".to_string(),- crate::providers::models::ProviderKind::BdixCircleFtp => {- "CircleFTP".to_string()- }- crate::providers::models::ProviderKind::BdixDhakaFlix => {- "DhakaFlix".to_string()- }- crate::providers::models::ProviderKind::Addons => {- let clean = crate::tui::text::clean_stream_text(file.source_label());- if !clean.is_empty() {- clean- } else {- "Addon".to_string()+ let clean_source = crate::tui::text::clean_stream_text(file.source_label());+ let upload_by = if !clean_source.is_empty() && clean_source != "Direct" {+ clean_source+ } else {+ match file.provider {+ crate::providers::models::ProviderKind::MovieBox => {+ "MovieBox CDN".to_string()+ }+ crate::providers::models::ProviderKind::FourKHdHub => "4KHDHub".to_string(),+ crate::providers::models::ProviderKind::BdixCircleFtp => {+ "CircleFTP".to_string()+ }+ crate::providers::models::ProviderKind::BdixDhakaFlix => {+ "DhakaFlix".to_string()}+ crate::providers::models::ProviderKind::Addons => "Addon".to_string(),}};let is_ultra_compact = streams_area.width < 58;