public async Task DoDownload(DownloadableFile file) { downloadIndex++; try { await file.DoAsyncSave(file, downloadPath); return; } catch (Exception e) { Console.Error.WriteLine($"Download failed ({downloadIndex}) ({file.GetVideoName()}) - {e.GetType()}"); } file.status = DownloadableFile.DownloadStatus.Failed; }
public void DownloadAsync(DownloadableFile file) { buffer.Post(file); }