iawia002 / lux

👾 Fast and simple video download library and CLI tool written in Go
MIT License
27.79k stars 3k forks source link

[download fail]: bilibili bangumi #1363

Open Aric-Sun opened 5 months ago

Aric-Sun commented 5 months ago

Website name: bilibili

OS:: Windows

Video URL:: https://www.bilibili.com/bangumi/play/ep785544

Stack overflow

C:\Users\xxx>"C:\Program Files\Lux\lux.exe" -c "C:\Program Files\Lux\blck.txt" -o C:\Downloads https://www.bilibili.com/bangumi/play/ep785544
panic: runtime error: index out of range [1] with length 0

goroutine 1 [running]:
github.com/iawia002/lux/extractors/bilibili.extractBangumi({0xc0001b0060, 0x2e}, {0xc0005be000, 0x28800}, {0x0, {0x0, 0x0}, 0x1, 0x0, 0x1, ...})
        /home/runner/work/lux/lux/extractors/bilibili/bilibili.go:99 +0xf32
github.com/iawia002/lux/extractors/bilibili.(*extractor).Extract(0x1c400c0?, {0xc0001b0060, 0x2e}, {0x0, {0x0, 0x0}, 0x1, 0x0, 0x1, {0xc0001b0030, ...}, ...})
        /home/runner/work/lux/lux/extractors/bilibili/bilibili.go:362 +0x278
github.com/iawia002/lux/extractors.Extract({0xc0001b0060?, 0x0?}, {0x0, {0x0, 0x0}, 0x1, 0x0, 0xa, {0xc0001b0030, 0x26}, ...})
        /home/runner/work/lux/lux/extractors/extractors.go:54 +0x351
github.com/iawia002/lux/app.download(0xc0002b0700?, {0xc0001b0060, 0x2e})
        /home/runner/work/lux/lux/app/app.go:275 +0x2e8
github.com/iawia002/lux/app.New.func1(0xc000514440)
        /home/runner/work/lux/lux/app/app.go:252 +0x67e
github.com/urfave/cli/v2.(*App).RunContext(0xc0001b4680, {0x13513a0?, 0x1c7de60}, {0xc0001bc000, 0x6, 0x8})
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.6.0/app.go:322 +0x8f0
github.com/urfave/cli/v2.(*App).Run(0xc000075ef0?, {0xc0001bc000?, 0x1b7d8a10108?, 0x1000000010e9111?})
        /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.6.0/app.go:224 +0x2f
main.main()
        /home/runner/work/lux/lux/main.go:13 +0x39

Screenshots

none

Additional context

none

sycz commented 3 months ago

+1