Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix: update subtitle parsing to use extCaptions array and lanName field
Samir Hossains3b8aaf04cc98
diff --git a/src/tui/app.rs b/src/tui/app.rsindex 9d660e4..3d2f047 100644--- a/src/tui/app.rs+++ b/src/tui/app.rs@@ -3963,10 +3963,10 @@ impl App {sender.send(Action::ShowDownloadSubtitlePopup(res)).ok();} else if let Some(pref_lang) = pref {let mut sub_url = None;- if let Some(list) = res.as_array() {+ if let Some(list) = res.get("extCaptions").and_then(|c| c.as_array()) {for sub in list {if let (Some(lang), Some(url)) = (- sub.get("language").and_then(|l| l.as_str()),+ sub.get("lanName").and_then(|l| l.as_str()),sub.get("url").and_then(|u| u.as_str()),) {if lang == pref_lang {