Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

refactor: reset FFmpeg location cache after downloading in ensure_ffmpeg function

Tonho15ac7ef3646c
diff --git a/src-tauri/src/core/dependencies.rs b/src-tauri/src/core/dependencies.rs
index f30ce9c8..d5c64983 100644
--- a/src-tauri/src/core/dependencies.rs
+++ b/src-tauri/src/core/dependencies.rs
@@ -110,7 +110,9 @@ pub async fn ensure_ffmpeg() -> anyhow::Result<PathBuf> {
if is_flatpak() {
return Err(anyhow!("FFmpeg not found in Flatpak sandbox"));
}
- download_ffmpeg().await
+ let path = download_ffmpeg().await?;
+ crate::core::ytdlp::reset_ffmpeg_location_cache();
+ Ok(path)
}
async fn download_ffmpeg() -> anyhow::Result<PathBuf> {