Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: index out of range #196

Open
glottisfaun0000 opened this issue Jan 2, 2024 · 0 comments
Open

panic: runtime error: index out of range #196

glottisfaun0000 opened this issue Jan 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@glottisfaun0000
Copy link

Describe the bug

With Mangadex, I'm getting a ton of failed downloads (originally encountered in Kaizoku but the same when running mangal directly) with errors like this:

 mangal inline --source Mangadex --query Tengoku Daimakyou --manga exact --chapters 135 -d
panic: runtime error: index out of range [16] with length 16

goroutine 1 [running]:
github.com/metafates/mangal/inline.ParseChaptersFilter.func1({0x14000276480?, 0x10, 0x10})
	github.com/metafates/mangal/inline/options.go:114 +0x390
github.com/metafates/mangal/inline.Run(0x1400001bc68)
	github.com/metafates/mangal/inline/inline.go:99 +0x400
github.com/metafates/mangal/cmd.glob..func11(0x104078b60?, {0x1032239e3?, 0xa?, 0xa?})
	github.com/metafates/mangal/cmd/inline.go:149 +0x4a4
github.com/spf13/cobra.(*Command).execute(0x104078b60, {0x14000481e00, 0xa, 0xa})
	github.com/spf13/[email protected]/command.go:920 +0x5b0
github.com/spf13/cobra.(*Command).ExecuteC(0x10407bf20)
	github.com/spf13/[email protected]/command.go:1044 +0x35c
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/[email protected]/command.go:968
github.com/metafates/mangal/cmd.Execute()
	github.com/metafates/mangal/cmd/root.go:112 +0x94
main.main()
	github.com/metafates/mangal/main.go:13 +0x54

Curious if this is a problem with Mangadex (I've confirmed X chapter does exist on the site), or a mangal known bug.

Reproduction steps

mangal inline --source Mangadex --query Tengoku Daimakyou --manga exact --chapters 135 -d

Expected behavior

Chapter is downloaded

Additional context

Running via homebrew on macOS, same behavior in Kaizoku via docker

Operating System

macOS

@glottisfaun0000 glottisfaun0000 added the bug Something isn't working label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant