iawia002 / lux

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

[download fail]: acfun #1109

Open Slarper opened 2 years ago

Slarper commented 2 years ago

Website name: acfun

OS:: Windows

Video URL:: url

Stack overflow

panic: runtime error: index out of range [1] with length 0

goroutine 1 [running]:
github.com/iawia002/lux/extractors/acfun.resolvingData({0xc000420000, 0x24c31, 0x2a000})
        /Users/iawia002/go/src/github.com/iawia002/lux/extractors/acfun/acfun.go:153 +0x214
github.com/iawia002/lux/extractors/acfun.(*extractor).Extract(0xc000066000?, {0xc00002a360?, 0x0?}, {0x0, {0x0, 0x0}, 0x1, 0x0, 0xa, {0x0, ...}, ...})
        /Users/iawia002/go/src/github.com/iawia002/lux/extractors/acfun/acfun.go:57 +0x15c
github.com/iawia002/lux/extractors.Extract({0xc00002a360?, 0xff480c?}, {0x0, {0x0, 0x0}, 0x1, 0x0, 0xa, {0x0, 0x0}, ...})
        /Users/iawia002/go/src/github.com/iawia002/lux/extractors/extractors.go:52 +0x391
github.com/iawia002/lux/app.download(0xc0000e1ce8?, {0xc00002a360, 0x21})
        /Users/iawia002/go/src/github.com/iawia002/lux/app/app.go:271 +0x2f2
github.com/iawia002/lux/app.New.func1(0xc0001afdc0)
        /Users/iawia002/go/src/github.com/iawia002/lux/app/app.go:248 +0x69d
github.com/urfave/cli/v2.(*App).RunContext(0xc00012d1e0, {0x17efbc8?, 0xc0000320f8}, {0xc0000743c0, 0x2, 0x2})
        /Users/iawia002/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:322 +0x953
github.com/urfave/cli/v2.(*App).Run(...)
        /Users/iawia002/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224
main.main()
        /Users/iawia002/go/src/github.com/iawia002/lux/main.go:13 +0x53

Screenshots

image

Additional context

none

Slarper commented 2 years ago

I look up the source code. So lux only support acfun bangumi downloading? how ridiculous! Why not make it support downloading the normal video from acfun?

MC-dusk commented 1 hour ago
+1,没想到两年了还是一样的报错,希望有大佬修一修 等不及的朋友可以去隔壁yt-dlp,用法是类似的