Skip to content

Commit

Permalink
more unique temp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Dec 14, 2022
1 parent d75ae74 commit a4fb6b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions TwitchDownloaderCore/VideoDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ public VideoDownloader(VideoDownloadOptions DownloadOptions)

public async Task DownloadAsync(IProgress<ProgressReport> 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
{
Expand Down

0 comments on commit a4fb6b8

Please sign in to comment.