Caught panic:
cant unmarshalljson: cannot unmarshal object into Go struct field pirateBayTorrentFile.Name of type []string
Restoring terminal...
2022/12/14 15:49:22 cant unmarshalljson: cannot unmarshal object into Go struct field pirateBayTorrentFile.Name of type []string
goroutine 1 [running]:
runtime/debug.Stack()
/opt/hostedtoolcache/go/1.18.5/x64/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
/opt/hostedtoolcache/go/1.18.5/x64/src/runtime/debug/stack.go:16 +0x19
github.com/charmbracelet/bubbletea.(*Program).StartReturningModel.func3()
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:371 +0x95
panic({0x8267c0, 0xc003a26210})
/opt/hostedtoolcache/go/1.18.5/x64/src/runtime/panic.go:844 +0x258
log.Panic({0xc0001be8d8?, 0x36?, 0x200?})
/opt/hostedtoolcache/go/1.18.5/x64/src/log/log.go:385 +0x65
github.com/ismaelpadilla/gotorrent/clients/thepiratebay.pirateBay.FetchTorrentFiles({}, {{0x96b998, 0xc392e8}, {0xc000e09558, 0x7}, {0xc000b397d0, 0x2b}, {0x0, 0x0}, {0xc000b39800, ...}, ...})
/home/runner/work/gotorrent/gotorrent/clients/thepiratebay/thepiratebay.go:115 +0x207
github.com/ismaelpadilla/gotorrent/interfaces.Torrent.FetchFiles(...)
/home/runner/work/gotorrent/gotorrent/interfaces/torrent.go:28
github.com/ismaelpadilla/gotorrent/ui.(*Model).showFiles(0xc0000dea00)
/home/runner/work/gotorrent/gotorrent/ui/ui.go:426 +0xd5
github.com/ismaelpadilla/gotorrent/ui.(*Model).handleKeyPress(0xc0000dea00, {0xffffffffffffffff, {0xc000b34ab8, 0x1, 0x1}, 0x0})
/home/runner/work/gotorrent/gotorrent/ui/ui.go:169 +0x6f2
github.com/ismaelpadilla/gotorrent/ui.Model.Update({{0x96b998, 0xc392e8}, {0xc001540000, 0x64, 0x64}, {0x0, 0x0}, 0x0, {0x0, 0x0}, ...}, ...)
/home/runner/work/gotorrent/gotorrent/ui/ui.go:74 +0x2db
github.com/charmbracelet/bubbletea.(*Program).StartReturningModel(0xc0000be370)
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:540 +0x1291
github.com/charmbracelet/bubbletea.(*Program).Start(...)
/home/runner/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:549
github.com/ismaelpadilla/gotorrent/cmd.glob..func1(0xbfe440?, {0xc392e8, 0x0, 0x0})
/home/runner/work/gotorrent/gotorrent/cmd/root.go:45 +0x256
github.com/spf13/cobra.(*Command).execute(0xbfe440, {0xc00001e220, 0x0, 0x0})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:876 +0x67b
github.com/spf13/cobra.(*Command).ExecuteC(0xbfe440)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:990 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:918
github.com/ismaelpadilla/gotorrent/cmd.Execute()
/home/runner/work/gotorrent/gotorrent/cmd/root.go:56 +0x2a
main.main()
/home/runner/work/gotorrent/gotorrent/main.go:8 +0x17