From 54f27d76d13dc59fa51fd109bb8d5aa4d085c315 Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Fri, 30 Aug 2024 17:28:40 -0400 Subject: [PATCH] Redownload WPF FFmpeg if the file is over 1 year old --- TwitchDownloaderWPF/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwitchDownloaderWPF/MainWindow.xaml.cs b/TwitchDownloaderWPF/MainWindow.xaml.cs index bc7179d3..05876f92 100644 --- a/TwitchDownloaderWPF/MainWindow.xaml.cs +++ b/TwitchDownloaderWPF/MainWindow.xaml.cs @@ -99,7 +99,7 @@ private async void Window_Loaded(object sender, RoutedEventArgs e) #endif // TODO: extract FFmpeg handling to a dedicated service - if (!File.Exists("ffmpeg.exe")) + if (!File.Exists("ffmpeg.exe") || File.GetLastWriteTime("ffmpeg.exe") < DateTime.Now - TimeSpan.FromDays(365)) { var oldTitle = Title; try