This repository has been archived by the owner on Dec 17, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修正方式参考:http://tieba.baidu.com/p/4568799018?pid=90678992863&cid=0#90678992863
Trouble Shooting Ways of Ubuntu
Step1:sudo gedit /usr/lib/python3/dist-packages/bcloud/auth.py
Do:在get_bdstoken函数的if req:前一行添加"cookie.load_list(req.headers.get_all('Set-Cookie'))"
Step2:sudo gedit /usr/lib/python3/dist-packages/bcloud/pcs.py
Do:把所有cookie.sub_output()的参数添加上'SCRC','STOKEN'
例:'Cookie': cookie.sub_output('BAIDUID', 'BDUSS', 'PANWEB', 'cflag', 'SCRC', 'STOKEN'),
Step3:删除配置数据和缓存
sudo rm -rf ~/.config/bcloud/*
sudo rm -rf ~/.cache/bcloud/*
Step4:重新运行Bcloud
Thanks ”poplit“ for share!