Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
fix: update yt-dlp freshness check to trigger update after 2 days
Tonho6f353b3e0f9a
diff --git a/src-tauri/src/core/ytdlp.rs b/src-tauri/src/core/ytdlp.rsindex 2f9ba64b..109073fa 100644--- a/src-tauri/src/core/ytdlp.rs+++ b/src-tauri/src/core/ytdlp.rs@@ -111,8 +111,8 @@ async fn check_ytdlp_freshness(path: &Path) {if let Ok(meta) = tokio::fs::metadata(path).await {if let Ok(modified) = meta.modified() {if let Ok(age) = modified.elapsed() {- if age > std::time::Duration::from_secs(7 * 24 * 60 * 60) {- tracing::info!("yt-dlp is older than 7 days, updating in background");+ if age > std::time::Duration::from_secs(2 * 24 * 60 * 60) {+ tracing::info!("yt-dlp is older than 2 days, updating in background");tokio::spawn(async {match download_ytdlp_binary().await {Ok(_) => tracing::info!("yt-dlp updated successfully"),