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

feat: downloading video collections #15

Merged
merged 6 commits into from
Mar 23, 2024
Merged

Conversation

robo-dani
Copy link
Contributor

Add functionality for downloading video collections.

增加了下载视频合集的功能, 对应的命令是 season(因为b站的api是 season_archive...), 因为视频可能会很多, 所以会以合集名创建相应的文件夹保存.
同时支持 -o $dir 选择下载目录.

@robo-dani
Copy link
Contributor Author

b站 视频合集与列表居然是两个东西, 本身想把列表的也写了, 但是相应api给的是aid, 就摆了.

@jingfelix
Copy link
Owner

jingfelix commented Mar 23, 2024

我用 README 里的数据测试时报了这个错:
image
是哪个校验没有过吗?

@robo-dani
Copy link
Contributor Author

不太清楚 我在我的两个设备上都能通过, 你能在 season.py的37行加入 typer.echo(f"code: {res['code']}") 吗, 我只打印了错误时的message
另外-352 我 在 api介绍里看到是请求被拦截了 https://github.com/SocialSisterYi/bilibili-API-collect/blob/26f4f65da4312cbeb149ece6b33c022330a8e7a2/docs/user/relation.md?plain=1#L229

README.md Outdated Show resolved Hide resolved
@jingfelix
Copy link
Owner

typer.echo(f"code: {res['code']}")

我又跑了下,这次又能下载了,可能是我被风控了……?

@robo-dani
Copy link
Contributor Author

笑死, 神奇的b站, 不过我完善以下错误信息吧

说起来我下载特别多的合集的时候也怕触发风控什么的,

@robo-dani
Copy link
Contributor Author

都改好了, 麻烦再检查一下吧

@jingfelix jingfelix merged commit cc92402 into jingfelix:main Mar 23, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants