-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[download fail]: bilibili download failed: panic: runtime error: index out of range [1] with length 0 #1213
Comments
in version 17:
|
Same problem here, it may be possible to download after a few more attempts. Generally, the download can be successful within 10 attempts, but it is really troublesome to encounter this problem repeatedly. |
Tried 10 hrs with no luck at all. |
请更改 bilibi页面获取aid方式 python 实例 |
I'm not familiar with Golang and surely there are more elegant and complete solutions to the issue, but here's a rudimentary implementation (in
|
After changing source code, the error is still with new edited lines:
|
I can download it based on Nathaniel-Wu's change |
It failed on my Windows. I dont have docker installed on my Windows. the function edited is:
Error:
the bilibili.go:97 is
Is there anyone who want to fork this project for a quick fix? |
After I dig the text dataString, I found that there is no such a text can match the condition of the line 97. The only one
No such an |
compiled exe based on Nathaniel-Wu's change |
Thanks a lot. By providing the url including ep other than ss, the exe you compiled as well as mine works. |
@fgr178707 是基于这个帖子里 Nathaniel-Wu 发的修改编译的
番集名字没有正确提取,文件只能以番的名字命名 |
By Replacing videoIdString := utils.MatchOneOf(dataString, `"videoId"\s*:\s*"ep(\d+)"`)[1] with videoIdString := utils.MatchOneOf(dataString, `"videoId"\s*:\s*"ss(\d+)"`)[1] you'll be able to download videos with And you could modify the Regular Expression to satisfy both |
根据这个回答做了些修改,可以正确处理 ep 或者 ss 开头的id,可以识别分段标题,PR在这里 #1227 这是打包好的文件 lux.zip |
Website name: Bilibili
OS:: Windows
Video URL:: https://www.bilibili.com/bangumi/play/ep704485
Stack overflow
Screenshots
none
Additional context
The text was updated successfully, but these errors were encountered: