From 8c8425956e57b207bc2a5066887eaa36b1380dd0 Mon Sep 17 00:00:00 2001 From: Simon <63975668+Simyon264@users.noreply.github.com> Date: Sun, 15 Dec 2024 03:57:49 +0100 Subject: [PATCH] Add gabystation --- .../Services/ReplayParser/Providers/NginxProvider.cs | 1 - ReplayBrowser/appsettings.json | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ReplayBrowser/Services/ReplayParser/Providers/NginxProvider.cs b/ReplayBrowser/Services/ReplayParser/Providers/NginxProvider.cs index 8ebf8bc..29b183f 100644 --- a/ReplayBrowser/Services/ReplayParser/Providers/NginxProvider.cs +++ b/ReplayBrowser/Services/ReplayParser/Providers/NginxProvider.cs @@ -41,7 +41,6 @@ public override async Task RetrieveFilesRecursive(string directoryUrl, Cancellat if (href.EndsWith("/", StringComparison.Ordinal)) { - await Task.Delay(TimeSpan.FromMilliseconds(10), token); // Prevents spamming the server await RetrieveFilesRecursive(href, token); } diff --git a/ReplayBrowser/appsettings.json b/ReplayBrowser/appsettings.json index 370df61..978fa87 100644 --- a/ReplayBrowser/appsettings.json +++ b/ReplayBrowser/appsettings.json @@ -7,6 +7,15 @@ }, "AllowedHosts": "*", "ReplayUrls": [ + { + "url": "https://replay.tucanostation.com/replays/", + "provider": "nginx", + "fallBackServerName": "gabystation", + "fallBackServerId": "gabystation", + "replayRegex": "(\\d{4}_\\d{2}_\\d{2}-\\d{2}_\\d{2})-round_\\d+\\.zip", + "serverNameRegex": "" + }, + { "url": "https://replays.funkystation.org/lrp1/", "provider": "nginx",