-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 issue #791 #782 #796
fix issue #791 #782 #796
Conversation
extractors/bilibili/bilibili.go
Outdated
fmt.Printf("Warning: Multi thread download is no longer supported by BiliBili, use single thread instead.\n") | ||
fmt.Printf("Thread Number: %d\n", option.ThreadNumber) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically LGTM, but I think this is unnecessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that line 282 is unnessary. But I still insist that it may be confusing for users to see -n parameter not working as expected, so printing a warning is beneficial.
But overall you are the owner, so you can make the final decision.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK then, I'll keep it.
Co-authored-by: Xinzhao Xu <z2d@jifangcheng.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
下载bilibili playlist时,annie默认采用多线程。在Bilibili更新风控策略后,此类多线程下载被视为爬虫,从而导致用户ip被加入黑名单。ip加入黑名单期间,用户访问目标视频将返回http 412错误。
本次修改思路为:在下载bilibili视频时强制使用单线程。在解析bilibili视频时,强制忽略-n 参数,将下载线程数置为1。经测试,可以有效避免返回http 412错误。