public async Task SpotifyPlaylistYoutubeDownloadTest(string url) { Console.WriteLine("Attempting...."); var tracks = await _trackRespository.LoadPlaylistAsync(url); var tracksToDl = tracks.OrderBy(t => t.Title); var timer = new Stopwatch(); int i = 1; try { timer.Start(); foreach (var track in tracksToDl) { await _downloadService.DownloadMediaFromTrackAsync(track : track, filePath : "Music", appendLyrics : true, useAuthor : true); Console.WriteLine($"[{i}] {track.Title} Downloaded."); i++; } timer.Stop(); Console.WriteLine("Yay!"); Console.WriteLine($"Time Taken: {timer.Elapsed.TotalSeconds}"); } catch (Exception ex) { Console.WriteLine(ex.Message); throw; } }