Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Error when adding links from a file #21

Closed
Magisdn opened this issue Nov 13, 2023 · 2 comments · Fixed by #22
Closed

Error when adding links from a file #21

Magisdn opened this issue Nov 13, 2023 · 2 comments · Fixed by #22
Labels
bug Something isn't working

Comments

@Magisdn
Copy link

Magisdn commented Nov 13, 2023

Hi!

./jdownloader-cli links add --from-file links.txt
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/rkosegi/jdownloader-cli/internal.parseLinksFromFile({0x7ffec1b35651?, 0x0?})
/home/rkosegi/git/ezz/public/jdownloader-cli/internal/links.go:151 +0x1f1
github.com/rkosegi/jdownloader-cli/internal.newAddLinksCommand.func1(0xc00018c900?, {0x84b8d6?, 0x2?, 0x2?})
/home/rkosegi/git/ezz/public/jdownloader-cli/internal/links.go:63 +0x5d
github.com/spf13/cobra.(*Command).execute(0xc00018c900, {0xc0001386a0, 0x2, 0x2})
/home/rkosegi/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:940 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc00018c000)
/home/rkosegi/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(0x8f2de0?)
/home/rkosegi/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992 +0x19
main.main()
/home/rkosegi/git/ezz/public/jdownloader-cli/cmd/cli.go:25 +0x45

@rkosegi
Copy link
Owner

rkosegi commented Nov 13, 2023

Hi @Magisdn, thank you for bug report.
Will look into it soon

@rkosegi rkosegi added the bug Something isn't working label Nov 13, 2023
@Magisdn
Copy link
Author

Magisdn commented Nov 14, 2023

Thanks!

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

Successfully merging a pull request may close this issue.

2 participants