Skip to content

Commit

Permalink
Redownload WPF FFmpeg if the file is over 1 year old
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Aug 30, 2024
1 parent 8968efc commit 54f27d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54f27d7

Please sign in to comment.