Skip to content
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

B站前端代码更改导致无法下载封面,进而导致下载整体失败? #52

Closed
nailvcoronation opened this issue Nov 16, 2022 · 4 comments
Labels
api invalid api is invalid

Comments

@nailvcoronation
Copy link

以我的b站首页推荐的一个视频举例:
bilix v 'https://www.bilibili.com/video/BV1KK411Z7m1' --image
会提示错误信息
WARNING GET ValueError 未知异常 url: //i1.hdslb.com/bfs/archive/c84c0d409451ce5cf6c379156b5d6d2122dc9ed7.jpg@100w_100h_1c.png
ERROR 超过重复次数 //i1.hdslb.com/bfs/archive/c84c0d409451ce5cf6c379156b5d6d2122dc9ed7.jpg@100w_100h_1c.png

我没注意过之前封面的url格式,但现在的这个url没有指定协议,另外即使用HTTP请求到了也只是一个100*100的图片,@前面的才是原图。而代码里好像没见到有对这部分的处理,因此猜测可能是b站改了前端的代码。
另外由于无法请求到图片,因此导致超过重复次数,最终导致抛出异常,甚至连可以正常下载的视频都无法下载。

@HFrost0
Copy link
Owner

HFrost0 commented Nov 16, 2022

好的,这个会尽快处理,前端这里可能是有变动

@HFrost0 HFrost0 added the api invalid api is invalid label Nov 16, 2022
@nailvcoronation
Copy link
Author

目前我的workaround就是在api/bilibili.py里加一行img_url = 'http:' + img_url[: img_url.rfind('@')],可以初步解决问题

@HFrost0
Copy link
Owner

HFrost0 commented Nov 16, 2022

对于部分视频,例如番剧,还是和之前一样,所以不能直接加一行,做个判断即可

@HFrost0
Copy link
Owner

HFrost0 commented Nov 16, 2022

版本0.10.3应该修复了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api invalid api is invalid
Projects
None yet
Development

No branches or pull requests

2 participants