From a35e9d111a45185bf6574e26beed87f67573503b Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sat, 28 Dec 2024 19:04:35 +0100 Subject: [PATCH] Randomize subscription order maybe that will help in the future, my ip was just banned --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index fc02136..d451142 100644 --- a/main.go +++ b/main.go @@ -112,6 +112,12 @@ func main() { authResult := login(basePath, username, password) subscriptions := getSubscriptions(basePath, authResult.Token) + // randomize subscription order + for i := range subscriptions { + j := rand.IntN(i + 1) + subscriptions[i], subscriptions[j] = subscriptions[j], subscriptions[i] + } + for i := range subscriptions { fmt.Println(subscriptions[i].Name) visit(basePath+subscriptions[i].Url, authResult.Token)