You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- FAIL: TestMyDownload/image_test (2.58s)
panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0
Website name: name
OS::macOS
Video URL:: url
Stack overflow
--- FAIL: TestMyDownload/image_test (2.58s)
panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0
goroutine 20 [running]:
testing.tRunner.func1.2({0x100c9d480, 0x140002900d8})
/Users/gongfangping/sdk/go1.19.3/src/testing/testing.go:1396 +0x1c8
testing.tRunner.func1()
/Users/gongfangping/sdk/go1.19.3/src/testing/testing.go:1399 +0x378
panic({0x100c9d480, 0x140002900d8})
/Users/gongfangping/sdk/go1.19.3/src/runtime/panic.go:884 +0x204
github.com/iawia002/lux/extractors/instagram.TestMyDownload.func1(0x0?)
/Users/gongfangping/IdeaProjects/lux/extractors/instagram/instagram1_test.go:29 +0xf4
testing.tRunner(0x14000187380, 0x140001930b0)
/Users/gongfangping/sdk/go1.19.3/src/testing/testing.go:1446 +0x10c
created by testing.(*T).Run
/Users/gongfangping/sdk/go1.19.3/src/testing/testing.go:1493 +0x300
Screenshots
none
dataStrings := utils.MatchOneOf(html,
window\.__additionalDataLoaded\('graphql',(.*)\);
)if dataStrings == nil || len(dataStrings) < 2 {
return nil, errors.WithStack(extractors.ErrURLParseFailed)
}
现在ins改了?正则匹配不了,删了这块,程序也能正常运行
Additional context
none
The text was updated successfully, but these errors were encountered: