private static void Cancel(YoutubeDL ydl, int count = 0) { try { ydl.StopProcess(); } catch (Exception ex) { Console.WriteLine($"\n\n{ex}\n\n"); } finally { ydl.isGettingInfo = false; ydl.IsDownloading = false; } }