Skip to content

Commit a4fb6b8

Browse files
committed
more unique temp folder
1 parent d75ae74 commit a4fb6b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

TwitchDownloaderCore/VideoDownloader.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ public VideoDownloader(VideoDownloadOptions DownloadOptions)
2626

2727
public async Task DownloadAsync(IProgress<ProgressReport> progress, CancellationToken cancellationToken)
2828
{
29-
string downloadFolder = Path.Combine(
30-
downloadOptions.TempFolder,
31-
(downloadOptions.Id == 0) ? Guid.NewGuid().ToString() : downloadOptions.Id.ToString());
29+
string downloadFolder = Path.Combine(downloadOptions.TempFolder, $"{downloadOptions.Id.ToString()}_{DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}");
3230

3331
try
3432
{

0 commit comments

Comments
 (0)