From 5219f1841709902f411e2fa4dbcacb3c2dd94098 Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 28 Feb 2022 17:56:11 +0100 Subject: [PATCH] Fixed array index out of bounds error when logging in --- cmd/crunchyroll-go/cmd/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/crunchyroll-go/cmd/utils.go b/cmd/crunchyroll-go/cmd/utils.go index 4a9e748..508e2e8 100644 --- a/cmd/crunchyroll-go/cmd/utils.go +++ b/cmd/crunchyroll-go/cmd/utils.go @@ -121,7 +121,7 @@ func loadCrunchy() { } split := strings.SplitN(string(body), "\n", 2) - if len(split) == 1 || split[2] == "" { + if len(split) == 1 || split[1] == "" { if crunchy, err = crunchyroll.LoginWithSessionID(split[0], systemLocale(), client); err != nil { out.StopProgress(err.Error()) os.Exit(1)