Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

error message when using all commands #29

Closed
Jacob26502 opened this issue May 7, 2022 · 3 comments
Closed

error message when using all commands #29

Jacob26502 opened this issue May 7, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Jacob26502
Copy link

Hi, I just tried installing this on my Ubuntu 21.04 VPS, and regardless of the command given, it always returns this message:

panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/ByteDream/crunchyroll-go/v2/cmd/crunchyroll-go/cmd.systemLocale(0x0)
        /home/admin/crunchyroll-go/cmd/crunchyroll-go/cmd/utils.go:37 +0x35a
github.com/ByteDream/crunchyroll-go/v2/cmd/crunchyroll-go/cmd.init.0()
        /home/admin/crunchyroll-go/cmd/crunchyroll-go/cmd/archive.go:123 +0x45


@bytedream
Copy link
Member

This is an language detection error. crunchyroll-go assumes that the system language follows the scheme language_country.UTF-8 (e.g. en_US.UTF-8 or de_DE.UTF-8).
What's the value of your LANG environment variable? (echo $LANG)

@bytedream bytedream added bug Something isn't working cli labels May 7, 2022
@Jacob26502
Copy link
Author

Jacob26502 commented May 7, 2022

it gives back C.UTF-8

bytedream added a commit that referenced this issue May 8, 2022
@bytedream
Copy link
Member

Fixed in release v2.2.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants