Skip to content

Commit

Permalink
Fix CLI unmanaged cache log message
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Apr 17, 2024
1 parent f9859bb commit 11aecc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TwitchDownloaderCLI/Modes/DownloadVideo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.IO;
using System.Linq;
using System.Threading;
using TwitchDownloaderCLI.Modes.Arguments;
using TwitchDownloaderCLI.Tools;
Expand Down Expand Up @@ -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<DirectoryInfo>();
Expand Down

0 comments on commit 11aecc9

Please sign in to comment.