-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Fix #17] avoid -352 by use new header. And add series features #18
Conversation
我找到了一个 700多视频的合集, 大概20次请求(对应视频索引在600之火)后会触发-352. 我打算把get_viedo改成yield的形式, 和下载视频穿插起来, 能避免一下发送大量请求 |
retry 也许可以用 添加 retry 和 headers 的 referer 可以直接把修改加进 |
试了下 series系列的headers 是可以用默认的, 这样子只有season模式需要特殊的headers了 |
@robo-dani 能否开一下 Allow Edit?README 里的几个描述我一起改一下 |
|
Signed-off-by: jingfelix <[email protected]>
Signed-off-by: jingfelix <[email protected]>
Changelog:
|
fix chore(deps): bump idna from 3.6 to 3.7 #17, use a new header, and wrap request with a retry function.
使用新的header我就几乎没遇到-352了, 再加上retry应该不会再出现了(至少在archlinux应该不会了..)
add series feature, now can download series using series command.
使用的是旧的接口, 出错的时候不带错误信息, code也为0.
只知道uid, 和sid错误的时候archives 为None