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

视频名字有特殊字符的话会报错OSError: [Errno 22] Invalid argument #11

Closed
gfjwong opened this issue Jul 24, 2023 · 3 comments

Comments

@gfjwong
Copy link

gfjwong commented Jul 24, 2023

比如名字里有" \ "之类的的时候。可以考虑把名字存成hash,之后再转回来

@tyokyo320
Copy link
Owner

比如名字里有" \ "之类的的时候。可以考虑把名字存成hash,之后再转回来

谢谢反馈,方便提供一下视频的BV号吗,我找时间修复一下

@gfjwong
Copy link
Author

gfjwong commented Jul 24, 2023

比如名字里有" \ "之类的的时候。可以考虑把名字存成hash,之后再转回来

谢谢反馈,方便提供一下视频的BV号吗,我找时间修复一下

比如这俩:
BV1kV4y197Pt
BV1hu4y1f71x

@tyokyo320
Copy link
Owner

比如名字里有" \ "之类的的时候。可以考虑把名字存成hash,之后再转回来

谢谢反馈,方便提供一下视频的BV号吗,我找时间修复一下

比如这俩: BV1kV4y197Pt BV1hu4y1f71x

我测试了一下你提供的两个bv号码:
BV1kV4y197Pt 这个视频是可以正常下载的

$ python main.py
文艺复兴ε(*・ω・)_-゚:・☆
下载的视频清晰度:清晰 480P
开始下载视频: 文艺复兴ε(*・ω・)_-゚:・☆.mp4
【下载视频完毕】
开始下载音频: 文艺复兴ε(*・ω・)_-゚:・☆.mp3
【下载音频完毕】
文艺复兴ε(*・ω・)_-゚:・☆
Moviepy - Building video /home/zhangqiang/work/repos/bilibili-downloader/output/文艺复兴ε(*・ω・)_-゚:・☆.mp4.
Moviepy - Writing video /home/users/work/repos/bilibili-downloader/output/文艺复兴ε(*・ω・)_-゚:・☆.mp4

Moviepy - Done !                                                                                                                                                                                                                                                                  
Moviepy - video ready /home/users/work/repos/bilibili-downloader/output/文艺复兴ε(*・ω・)_-゚:・☆.mp4
视频合成结束
总计用时:0分钟5秒

第二个bv号码视频不存在,如果可能的话,再提供一些报错信息或者一些BV号码,谢谢

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

No branches or pull requests

2 participants