mirror of
https://github.com/Footsiefat/zspotify
synced 2021-12-21 22:06:14 +01:00
Fix credentials.json not being saved in CREDENTIALS_LOCATION path
This commit is contained in:
parent
45f276013f
commit
c42b8131d1
@ -49,7 +49,8 @@ class ZSpotify:
|
||||
user_name = input('Username: ')
|
||||
password = getpass()
|
||||
try:
|
||||
cls.SESSION = Session.Builder().user_pass(user_name, password).create()
|
||||
conf = Session.Configuration.Builder().set_stored_credential_file(cred_location).build()
|
||||
cls.SESSION = Session.Builder(conf).user_pass(user_name, password).create()
|
||||
return
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user