lux icon indicating copy to clipboard operation
lux copied to clipboard

[download fail]: acfun

Open Slarper opened this issue 2 years ago • 2 comments

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/[email protected]/app.go:322 +0x953
github.com/urfave/cli/v2.(*App).Run(...)
        /Users/iawia002/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:224
main.main()
        /Users/iawia002/go/src/github.com/iawia002/lux/main.go:13 +0x53

Screenshots

image

Additional context

none

Slarper avatar Jun 10 '22 12:06 Slarper

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?

Slarper avatar Jun 10 '22 15:06 Slarper