mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Fixed array index out of bounds error when logging in
This commit is contained in:
parent
647eb075e5
commit
5219f18417
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue