Skip to content

Commit

Permalink
-449登录的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
esrrhs committed Jul 28, 2021
1 parent 496ef86 commit 73c0708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bilibiliuploader/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def login(username, password):
}

r = requests.post(
"https://passport.bilibili.com/api/oauth2/login",
"https://passport.bilibili.com/api/v3/oauth2/login",
headers=headers,
data=post_data,
cookies={
Expand All @@ -173,7 +173,7 @@ def login(username, password):
response = r.json()
response_code = response['code']
if response_code == 0:
login_data = response['data']
login_data = response['data']['token_info']
return response_code, login_data['access_token'], login_data['refresh_token'], sid, login_data['mid'], login_data["expires_in"]
elif response_code == -105: # captcha error, retry=5
retry_cnt = 5
Expand Down

1 comment on commit 73c0708

@jhonprice
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢,我正巧遇到这个问题😂

Please sign in to comment.