mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2025-07-01 15:23:15 +00:00
Hide input while entering password
This commit is contained in:
parent
f03014d180
commit
e94385eb95
@ -17,6 +17,7 @@ from librespot.audio.decoders import AudioQuality, VorbisOnlyAudioQuality
|
||||
from librespot.core import Session
|
||||
from librespot.metadata import TrackId
|
||||
from pydub import AudioSegment
|
||||
from getpass import getpass
|
||||
|
||||
SESSION: Session = None
|
||||
|
||||
@ -73,7 +74,7 @@ def login():
|
||||
pass
|
||||
while True:
|
||||
user_name = input("UserName: ")
|
||||
password = input("Password: ")
|
||||
password = getpass()
|
||||
try:
|
||||
SESSION = Session.Builder().user_pass(user_name, password).create()
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user