mmzou / geektime-dl

👾 Geektime-dl 是使用Go构建的快速、简单的极客时间下载器,支持专栏下载为PDF文档。
MIT License
551 stars 168 forks source link

panic: runtime error: invalid memory address or nil pointer dereference #61

Open halohsu opened 2 years ago

halohsu commented 2 years ago
➜  geektime-dl git:(master) ✗ ./geektime-dl buy | grep Rust
|  1 | 435 | 专栏   | 陈天 · Rust 编程第一课    | 陈天           |
| 15 | 348 | 视频课 | 张汉东的Rust实战课         | 张汉东         |
➜  geektime-dl git:(master) ✗ 
➜  geektime-dl git:(master) ✗ 
➜  geektime-dl git:(master) ✗ 
➜  geektime-dl git:(master) ✗ 
➜  geektime-dl git:(master) ✗ 
➜  geektime-dl git:(master) ✗ 
➜  geektime-dl git:(master) ✗ ./geektime-dl 348
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x38 pc=0x1030c7470]

goroutine 54 [running]:
github.com/mmzou/geektime-dl/cli/cmds.extractVideoDownloadData.func1(0x14000076480, 0x140000a8460, 0x1400046c660)
    /Users/yast/go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:213 +0xa0
created by github.com/mmzou/geektime-dl/cli/cmds.extractVideoDownloadData
    /Users/yast/go/src/github.com/mmzou/geektime-dl/cli/cmds/download.go:207 +0x654