Skip to content

Commit

Permalink
fix: error downloading after switching back from sms
Browse files Browse the repository at this point in the history
  • Loading branch information
itsHenry35 committed Jun 22, 2023
1 parent f507c87 commit fc1c108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def perform_login(credentials):
if smscredential['pwdlogin'] == 'False':
return login2_sms(smscredential['phonenum'], smscredential['code'], smscredential['zonecode'])
if smscredential['pwdlogin'] == 'True':
return perform_login(login(username=str(smscredential['phonenum'])))
return perform_login(login1(str(smscredential['phonenum'])))

def login(username=""):
credentials = login1(username)
def login():
credentials = login1()
loginresult = perform_login(credentials)
while loginresult['success'] == 'False':
loginresult = login()
Expand Down

0 comments on commit fc1c108

Please sign in to comment.