ly0 / baidupcsapi

百度网盘api
MIT License
1.21k stars 234 forks source link

修复self.user['token']不存在问题 #65

Closed lazygunner closed 7 years ago

lazygunner commented 7 years ago

通过加载cookie文件完成登陆,但是没有设置user['token']字段,导致发送请求时报KeyError错误。 通过在load_cookies()中添加self.user['token'] = self._get_token()进行修复 关联issue #64

ly0 commented 7 years ago

感谢:)