From 11aecc9439699349f800fba4ae9be74bba5a84ec Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:15:19 -0400 Subject: [PATCH] Fix CLI unmanaged cache log message --- TwitchDownloaderCLI/Modes/DownloadVideo.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TwitchDownloaderCLI/Modes/DownloadVideo.cs b/TwitchDownloaderCLI/Modes/DownloadVideo.cs index 0719481d..d30b4cce 100644 --- a/TwitchDownloaderCLI/Modes/DownloadVideo.cs +++ b/TwitchDownloaderCLI/Modes/DownloadVideo.cs @@ -1,5 +1,6 @@ using System; using System.IO; +using System.Linq; using System.Threading; using TwitchDownloaderCLI.Modes.Arguments; using TwitchDownloaderCLI.Tools; @@ -71,7 +72,7 @@ private static VideoDownloadOptions GetDownloadOptions(VideoDownloadArgs inputOp CacheCleanerCallback = directoryInfos => { logger.LogInfo( - $"{directoryInfos.Length} unmanaged video caches were found at '{inputOptions.TempFolder}' and can be safely deleted. " + + $"{directoryInfos.Length} unmanaged video caches were found at '{directoryInfos.FirstOrDefault()?.Parent?.FullName ?? inputOptions.TempFolder}' and can be safely deleted. " + "Run 'TwitchDownloaderCLI cache help' for more information."); return Array.Empty();