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

cookies的问题 #38

Closed
lemonhall opened this issue Feb 8, 2024 · 1 comment
Closed

cookies的问题 #38

lemonhall opened this issue Feb 8, 2024 · 1 comment

Comments

@lemonhall
Copy link

据我观察,会员的cookies会在大约1-2天内过期

之后下载的就都是480p的低清晰度视频了

需要更新一下config文件里的几件套

不太好搞的感觉,估计需要模拟游览器访问bilibili

也不知道b站的机制

@amtoaer
Copy link
Owner

amtoaer commented Feb 9, 2024

我这里稳定运行很久了,还没有出现过问题。
现在 bili-sync 的行为与上游研究发现的 web 端刷新机制保持一致。会在每天第一次执行时检验 cookie 是否需要刷新,如果需要就会触发刷新并把新 cookie 写到配置文件里,所以理论上是不会失效的。
可能的情况是,同一份 cookie 在写入 bili-sync 后没有在网页端清除,导致网页端先行触发了刷新流程,使 bili-sync 持有的原始的 cookie 失效。
解决办法是在一个无痕窗口内授权,授权后将凭据粘贴到 bili-sync 后关掉无痕窗口,让同一份 cookie 仅在一个位置管理,参考:#12

@amtoaer amtoaer closed this as completed Apr 14, 2024
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