It's occurring on this ln485 in client.go
if c.client.androidVersion > 0 {
return format.URL, nil
}
It would appear the the issue is coming from:
client *clientInfo
as my current value while debugging is: client:
*github.com/kkdai/youtube/v2.clientInfo nil
This is occurring on all links/urls, not anything in particular.
Exception has occurred: panic
"runtime error: invalid memory address or nil pointer dereference"
Stack:
4 0x0000000000ce1cf3 in github.com/kkdai/youtube/v2.(*Client).GetStreamURLContext
at /home/light/go/pkg/mod/github.com/kkdai/youtube/v2@v2.8.0/client.go:485
5 0x0000000000ce1b8c in github.com/kkdai/youtube/v2.(*Client).GetStreamURL
at /home/light/go/pkg/mod/github.com/kkdai/youtube/v2@v2.8.0/client.go:475
6 0x0000000000ce011b in github.com/kkdai/youtube/v2.(*Client).GetStreamContext
at /home/light/go/pkg/mod/github.com/kkdai/youtube/v2@v2.8.0/client.go:320
7 0x0000000000cdff7b in github.com/kkdai/youtube/v2.(*Client).GetStream
at /home/light/go/pkg/mod/github.com/kkdai/youtube/v2@v2.8.0/client.go:315
8 0x0000000000cf5ac5 in main.DownloadVideo
at /home/light/goget/yt.go:63
9 0x0000000000cf5734 in main.GetMedia
at /home/light/goget/yt.go:42
10 0x0000000000cf47e5 in main.DownloadHandler.func1
at /home/light/goget/web.go:62
It's occurring on this ln485 in client.go
It would appear the the issue is coming from:
client *clientInfo
as my current value while debugging is: client:
*github.com/kkdai/youtube/v2.clientInfo nil
This is occurring on all links/urls, not anything in particular.