From a4fb6b8501c4e1e6459579a6fe0cd764944c086f Mon Sep 17 00:00:00 2001 From: lay295 Date: Tue, 13 Dec 2022 20:30:14 -0600 Subject: [PATCH] more unique temp folder --- TwitchDownloaderCore/VideoDownloader.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/TwitchDownloaderCore/VideoDownloader.cs b/TwitchDownloaderCore/VideoDownloader.cs index 78ca9cda..c3fbb978 100644 --- a/TwitchDownloaderCore/VideoDownloader.cs +++ b/TwitchDownloaderCore/VideoDownloader.cs @@ -26,9 +26,7 @@ public VideoDownloader(VideoDownloadOptions DownloadOptions) public async Task DownloadAsync(IProgress progress, CancellationToken cancellationToken) { - string downloadFolder = Path.Combine( - downloadOptions.TempFolder, - (downloadOptions.Id == 0) ? Guid.NewGuid().ToString() : downloadOptions.Id.ToString()); + string downloadFolder = Path.Combine(downloadOptions.TempFolder, $"{downloadOptions.Id.ToString()}_{DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}"); try {