Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

fix: delay subtitle file deletion by 5 seconds to ensure playback process has initialized

Samir Hossains598759b28368
diff --git a/src/tui/app.rs b/src/tui/app.rs
index 62ed54e..3af218e 100644
--- a/src/tui/app.rs
+++ b/src/tui/app.rs
@@ -4109,7 +4109,10 @@ impl App {
let _ = cmd.spawn();
if let Some(path) = sub_temp_path {
- let _ = tokio::fs::remove_file(path).await;
+ tokio::spawn(async move {
+ tokio::time::sleep(std::time::Duration::from_secs(5)).await;
+ let _ = tokio::fs::remove_file(path).await;
+ });
}
});
}