diff --git a/RC2BotArchiver/DownloadImages.cs b/RC2BotArchiver/DownloadImages.cs index adccb0b..1916c6f 100644 --- a/RC2BotArchiver/DownloadImages.cs +++ b/RC2BotArchiver/DownloadImages.cs @@ -7,7 +7,7 @@ public static class DownloadImages { public static async Task DoIt(HttpClient client) { - foreach (var dir in Directory.EnumerateDirectories("robots")) + foreach (var dir in Directory.EnumerateDirectories("my_robots")) { var json = await File.ReadAllTextAsync(Path.Combine(dir, "metadata.json")); var doc = JsonDocument.Parse(json); diff --git a/RC2BotArchiver/Program.cs b/RC2BotArchiver/Program.cs index ed88e60..947d7f0 100644 --- a/RC2BotArchiver/Program.cs +++ b/RC2BotArchiver/Program.cs @@ -12,9 +12,6 @@ Console.WriteLine("Hello, World!"); var client = new HttpClient(); -await DownloadImages.DoIt(client); - -/* async Task GetResponse(HttpResponseMessage result, string url) { if (result.StatusCode == HttpStatusCode.OK) @@ -91,7 +88,6 @@ foreach (var result in results.EnumerateArray()) Thread.Sleep(100); } -// TODO: Get local saves -// TODO: Save robot images +await DownloadImages.DoIt(client); + // TODO: Chart of amount of bots on CRF by date & amount of starter bots -*/ \ No newline at end of file