Skip to content

Commit

Permalink
Merge pull request #24 from esrrhs/master
Browse files Browse the repository at this point in the history
修复 -449登录的问题
  • Loading branch information
FortuneDayssss authored Jul 28, 2021
2 parents 496ef86 + 73c0708 commit c7f00ac
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 c7f00ac

@wpcwzy
Copy link

@wpcwzy wpcwzy commented on c7f00ac Jul 29, 2021

Choose a reason for hiding this comment

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

fixed #23

Please sign in to comment.